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, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, 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 InternalEvent |
createTestEvent(org.mule.runtime.api.message.Message message) |
protected abstract org.mule.runtime.api.metadata.DataType |
getVariableDataType(InternalEvent 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(InternalEvent event,
String key,
String value) |
protected abstract void |
verifyNotAdded(InternalEvent mockEvent) |
protected abstract void |
verifyRemoved(InternalEvent mockEvent,
String key) |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, createTestFlow, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, doTestClassInjection, eventBuilder, getAppleFlowComponentLocationAnnotations, getBuilder, getConfigurationResources, getEventBuilder, getExecutionClassLoader, getFakeFlowConstruct, getFileInsideWorkingDirectory, getFlowComponentLocationAnnotations, getNamedTestFlow, getObjectSerializer, getPayload, getPayload, getPayloadAsBytes, getPayloadAsString, getSensingNullMessageProcessor, getStartUpProperties, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, mockExprExecutorService, mockHttpService, process, recordSchedulersOnInit, setDisposeContextPerClass, setStartContext, setUpMuleContext, verifyAndStopSchedulersaddMockComponentLocation, clearRequestContext, 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 InternalEvent 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(InternalEvent 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 verifyAdded(InternalEvent event, String key, String value)
protected abstract void verifyNotAdded(InternalEvent mockEvent)
protected abstract void verifyRemoved(InternalEvent mockEvent, String key)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.