public abstract class AbstractAddVariablePropertyProcessorTestCase extends AbstractMuleContextTestCase
| Modifier and Type | Field and Description |
|---|---|
static Charset |
CUSTOM_ENCODING |
static Charset |
ENCODING |
static String |
EXPRESSION |
static String |
EXPRESSION_VALUE |
static String |
NULL_EXPRESSION |
static String |
PLAIN_STRING_KEY |
static String |
PLAIN_STRING_VALUE |
BLOCK_TIMEOUT, callbackCalled, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, REACTOR_BLOCK_TIMEOUT_EXCEPTION_MESSAGE, RECEIVE_TIMEOUT, TEST_MESSAGE, testServicesConfigurationBuilder, testServicesConfigurationBuilderSupplier, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectoryDEFAULT_TEST_TIMEOUT_SECS, globalTimeout, name, TEST_CONNECTOR, TEST_CONNECTOR_LOCATION, TEST_PAYLOAD, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME| Constructor and Description |
|---|
AbstractAddVariablePropertyProcessorTestCase(AbstractAddVariablePropertyProcessor abstractAddVariableProcessor) |
| Modifier and Type | Method and Description |
|---|---|
protected Event |
createTestEvent(org.mule.runtime.api.message.Message message) |
protected abstract org.mule.runtime.api.metadata.DataType |
getVariableDataType(Event event,
String key) |
void |
setUpTest() |
void |
testAddVariable() |
void |
testAddVariableWithEmptyKey() |
void |
testAddVariableWithEncoding() |
void |
testAddVariableWithExpressionKey() |
void |
testAddVariableWithExpressionValue() |
void |
testAddVariableWithMimeType() |
void |
testAddVariableWithNullExpressionKeyResult() |
void |
testAddVariableWithNullExpressionValueResult() |
void |
testAddVariableWithNullKey() |
void |
testAddVariableWithNullPayloadExpressionValueResult() |
void |
testAddVariableWithNullValue() |
protected abstract void |
verifyAdded(Event event,
String key,
String value) |
protected abstract void |
verifyNotAdded(Event mockEvent) |
protected abstract void |
verifyRemoved(Event mockEvent,
String key) |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, eventBuilder, getBuilder, getConfigurationResources, getExecutionClassLoader, getFileInsideWorkingDirectory, getObjectSerializer, getPayload, getPayload, getPayloadAsBytes, getPayloadAsString, getSensingNullMessageProcessor, getStartUpProperties, getTestFlowWithComponent, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, mockExprExecutorService, mockHttpService, process, recordSchedulersOnInit, setDisposeContextPerClass, setStartContext, setUpMuleContext, verifyAndStopSchedulersclearRequestContext, clearTestCaseName, clearTestEvents, collectThreadNames, createTestTimeoutRule, dumpFilteredThreadsInTest, getMavenProjectVersionProperty, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isFailOnTimeout, isOffline, newEvent, nullPayloadEvent, takeTestCaseName, testEventpublic static final Charset ENCODING
public static final String PLAIN_STRING_KEY
public static final String PLAIN_STRING_VALUE
public static final String EXPRESSION
public static final String EXPRESSION_VALUE
public static final String NULL_EXPRESSION
public static final Charset CUSTOM_ENCODING
public AbstractAddVariablePropertyProcessorTestCase(AbstractAddVariablePropertyProcessor abstractAddVariableProcessor)
protected Event createTestEvent(org.mule.runtime.api.message.Message message) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void testAddVariable()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void testAddVariableWithExpressionValue()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void testAddVariableWithExpressionKey()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void testAddVariableWithEncoding()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void testAddVariableWithMimeType()
throws MimeTypeParseException,
org.mule.runtime.api.exception.MuleException
MimeTypeParseExceptionorg.mule.runtime.api.exception.MuleExceptionprotected abstract org.mule.runtime.api.metadata.DataType getVariableDataType(Event event, String key)
public void testAddVariableWithNullKey()
throws org.mule.runtime.api.lifecycle.InitialisationException,
TransformerException
org.mule.runtime.api.lifecycle.InitialisationExceptionTransformerExceptionpublic void testAddVariableWithEmptyKey()
throws org.mule.runtime.api.lifecycle.InitialisationException,
TransformerException
org.mule.runtime.api.lifecycle.InitialisationExceptionTransformerExceptionpublic void testAddVariableWithNullValue()
throws org.mule.runtime.api.lifecycle.InitialisationException,
TransformerException
org.mule.runtime.api.lifecycle.InitialisationExceptionTransformerExceptionpublic void testAddVariableWithNullExpressionKeyResult()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void testAddVariableWithNullExpressionValueResult()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void testAddVariableWithNullPayloadExpressionValueResult()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected abstract void verifyNotAdded(Event mockEvent)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.