public abstract class AbstractReactiveProcessorTestCase extends AbstractMuleContextTestCase
AbstractMuleContextTestCase to be used when a Processor or
Flow that implements both Processor.process(Event) and
Processor.apply(Publisher) needs paramatized tests so that both approaches are tested with the same test method. Test
cases that extend this abstract class should use (@link process(Processor, Event) to invoke Processor's as
part of the test, rather than invoking them directly.| Modifier and Type | Field and Description |
|---|---|
protected Scheduler |
scheduler |
callbackCalled, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectoryDEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_CONNECTOR, TEST_PAYLOAD, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME| Constructor and Description |
|---|
AbstractReactiveProcessorTestCase(boolean reactive) |
| Modifier and Type | Method and Description |
|---|---|
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(). |
protected boolean |
isReactive() |
static Collection<Object[]> |
parameters() |
protected Event |
process(Processor processor,
Event event) |
protected Event |
processFlow(Flow flow,
Event event) |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDownAfterMuleContextDispose, eventBuilder, getBuilder, getConfigurationResources, getExecutionClassLoader, getFileInsideWorkingDirectory, getObjectSerializer, getPayload, getPayload, getPayloadAsBytes, getPayloadAsString, getPayloadAsString, getSensingNullMessageProcessor, getStartUpProperties, getTestFlowWithComponent, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContextclearRequestContext, clearTestCaseName, clearTestEvents, collectThreadNames, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isFailOnTimeout, isOffline, nullPayloadEvent, takeTestCaseName, testEventprotected Scheduler scheduler
public AbstractReactiveProcessorTestCase(boolean reactive)
public static Collection<Object[]> parameters()
protected 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 testcaseprotected Event process(Processor processor, Event event) throws Exception
process in class AbstractMuleContextTestCaseExceptionprotected boolean isReactive()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.