public abstract class AbstractTransformerTestCase extends AbstractMuleContextTestCase
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 |
|---|
AbstractTransformerTestCase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareResults(Object expected,
Object result) |
boolean |
compareRoundtripResults(Object expected,
Object result) |
protected void |
doSetUp()
Enables the adding of extra behavior on the set up stage of a test right after the creation of the mule context in
AbstractMuleContextTestCase.setUpMuleContext(). |
protected void |
doTearDown()
Enables the adding of extra behavior on the tear down stage of a test before the mule context is disposed in
AbstractMuleContextTestCase.disposeContextPerTest(). |
void |
doTestBadReturnType(Transformer tran,
Object src) |
protected void |
doTestClone(Transformer original,
Transformer clone) |
abstract Object |
getResultData() |
abstract Transformer |
getRoundTripTransformer() |
abstract Object |
getTestData() |
abstract Transformer |
getTransformer() |
protected String |
normalizeString(String rawString) |
void |
testBadReturnType() |
void |
testRoundTrip() |
void |
testRoundtripBadReturnType() |
void |
testRoundtripTransform() |
void |
testTransform() |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, 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, testEventprotected void doSetUp()
throws Exception
AbstractMuleContextTestCaseAbstractMuleContextTestCase.setUpMuleContext().
Under normal circumstances this method could be replaced by a @Before annotated method.
doSetUp in class AbstractMuleContextTestCaseException - if something fails that should halt the test caseprotected void doTearDown()
throws Exception
AbstractMuleContextTestCaseAbstractMuleContextTestCase.disposeContextPerTest().
Under normal circumstances this method could be replace with a @After annotated method.
doTearDown in class AbstractMuleContextTestCaseException - if something fails that should halt the testcasepublic void testRoundtripBadReturnType()
throws Exception
Exceptionpublic void doTestBadReturnType(Transformer tran, Object src) throws Exception
Exceptionprotected void doTestClone(Transformer original, Transformer clone) throws Exception
Exceptionpublic abstract Transformer getTransformer() throws Exception
Exceptionpublic abstract Transformer getRoundTripTransformer() throws Exception
Exceptionpublic abstract Object getTestData()
public abstract Object getResultData()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.