public abstract class AbstractReactiveProcessorTestCase extends AbstractMuleContextTestCase
AbstractMuleContextTestCase to be used when a Processor or Flow that
implements both Processor.process(CoreEvent) 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, CoreEvent) to invoke Processor's as part of the test, rather than invoking them directly.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractReactiveProcessorTestCase.Mode |
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.runtime.api.component.location.ConfigurationComponentLocator |
configurationComponentLocator |
protected AbstractReactiveProcessorTestCase.Mode |
mode |
protected org.mule.runtime.api.scheduler.Scheduler |
scheduler |
BLOCK_TIMEOUT, componentLocator, 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 |
|---|
AbstractReactiveProcessorTestCase(AbstractReactiveProcessorTestCase.Mode mode) |
| 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 Map<String,Object> |
getStartUpRegistryObjects() |
static Collection<AbstractReactiveProcessorTestCase.Mode> |
modeParameters() |
protected CoreEvent |
process(Processor processor,
CoreEvent event) |
protected CoreEvent |
process(Processor processor,
CoreEvent event,
boolean unwrapMessagingException) |
addBuilders, configureMuleContext, createMuleContext, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDownAfterMuleContextDispose, doTestClassInjection, getAppleFlowComponentLocationAnnotations, getBuilder, getConfigurationResources, getEventBuilder, getExecutionClassLoader, getFileInsideWorkingDirectory, getFlowComponentLocationAnnotations, getObjectSerializer, getPayload, getPayload, getPayloadAsBytes, getPayloadAsString, getSensingNullMessageProcessor, getTriggerableMessageSource, getWorkingDirectory, isDisposeContextPerClass, isGracefulShutdown, isStartContext, mockExprExecutorService, mockHttpService, recordSchedulersOnInit, setDisposeContextPerClass, setStartContext, setUpMuleContext, verifyAndStopSchedulersaddMockComponentLocation, clearRequestContext, clearTestCaseName, clearTestEvents, collectThreadNames, createTestTimeoutRule, dumpFilteredThreadsInTest, getMavenProjectVersionProperty, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isFailOnTimeout, isOffline, newEvent, nullPayloadEvent, takeTestCaseName, testEventprotected org.mule.runtime.api.scheduler.Scheduler scheduler
protected AbstractReactiveProcessorTestCase.Mode mode
protected org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator
public AbstractReactiveProcessorTestCase(AbstractReactiveProcessorTestCase.Mode mode)
public static Collection<AbstractReactiveProcessorTestCase.Mode> modeParameters()
protected Map<String,Object> getStartUpRegistryObjects()
getStartUpRegistryObjects in class AbstractMuleContextTestCaseprotected 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 CoreEvent process(Processor processor, CoreEvent event) throws Exception
process in class AbstractMuleContextTestCaseExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.