public class DefaultOutboundRouterCollectionTestCase extends AbstractMuleContextTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
DefaultOutboundRouterCollectionTestCase() |
Modifier and Type | Method and Description |
---|---|
protected Service |
createService() |
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() . |
void |
testMultipleDoesNotRequireCopyRouterMatchAllFalse()
If there are multiple outbound routers but matchAll is false then we only need
to copy message if the router might mutate it in isMatch, if not then no need
to copy.
|
void |
testMultipleDoesNotRequireCopyRouterMatchAllTrue()
If there are multiple outbound routers and matchAll is true then we need a new
message copy for all but the *last* router independent of whether the routers
may mutate the message in isMatch or not.
|
void |
testMultipleMixMatchAllFalse()
If matchAll is false then we need a new message copy for each router that may
mutate the message in isMatch unless it is the last router.
|
void |
testMultipleMixMatchAllTrue()
If matchAll is true then we need a new message copy for each and every router except the last one.
|
void |
testMultipleRequiresCopyRouterMatchAllFalse()
If there are multiple outbound routers and matchAll is false then we need a
new message copy for all but the *last* router that may mutate the message in
isMatch.
|
void |
testMultipleRequiresCopyRouterMatchAllTrue()
If there are multiple outbound routers and matchAll is true then we need a new
message copy for all but the *last* router independent of whether the routers
may mutate the message in isMatch or not.
|
void |
testSingleDoesNotRequireCopyRouterMatchAllFalse()
If there is just one outbound router we don't need to do any copying at all
regardless of if matchAll is true or not or if the router mutates the message
in isMatch or not .
|
void |
testSingleDoesNotRequireCopyRouterMatchAllTrue()
If there is just one outbound router we don't need to do any copying at all
regardless of if matchAll is true or not or if the router mutates the message
in isMatch or not .
|
void |
testSingleRequiresCopyRouterMatchAllFalse()
If there is just one outbound router we don't need to do any copying at all
regardless of if matchAll is true or not or if the router mutates the message
in isMatch or not .
|
void |
testSingleRequiresCopyRouterMatchAllTrue()
If there is just one outbound router we don't need to do any copying at all
regardless of if matchAll is true or not or if the router mutates the message
in isMatch or not .
|
void |
testStreamPayload()
If the message is a stream and message copying is required due to any of the
scenarios tested above then an exception should be thrown as the stream
payload cannot be copied.
|
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public DefaultOutboundRouterCollectionTestCase()
protected void doSetUp() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.setUpMuleContext()
.
Under normal circumstances this method could be replaced by a
@Before
annotated method.
doSetUp
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the test caseprotected Service createService() throws MuleException
MuleException
public void testSingleDoesNotRequireCopyRouterMatchAllFalse() throws Exception
Exception
- if the test fails!public void testSingleDoesNotRequireCopyRouterMatchAllTrue() throws Exception
Exception
- if the test fails!public void testSingleRequiresCopyRouterMatchAllFalse() throws Exception
Exception
- if the test fails!public void testSingleRequiresCopyRouterMatchAllTrue() throws Exception
Exception
- if the test fails!public void testMultipleDoesNotRequireCopyRouterMatchAllFalse() throws Exception
Exception
- if the test fails!public void testMultipleDoesNotRequireCopyRouterMatchAllTrue() throws Exception
Exception
- if the test fails!public void testMultipleRequiresCopyRouterMatchAllFalse() throws Exception
Exception
- if the test fails!public void testMultipleRequiresCopyRouterMatchAllTrue() throws Exception
Exception
- if the test fails!public void testMultipleMixMatchAllTrue() throws Exception
Exception
- if the test fails!public void testMultipleMixMatchAllFalse() throws Exception
Exception
- if the test fails!Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.