|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.routing.outbound.DefaultOutboundRouterCollectionTestCase
public class DefaultOutboundRouterCollectionTestCase
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary |
---|
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs |
Constructor Summary | |
---|---|
DefaultOutboundRouterCollectionTestCase()
|
Method Summary | |
---|---|
protected Service |
createService()
|
protected void |
doSetUp()
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. |
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. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runTest, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultOutboundRouterCollectionTestCase()
Method Detail |
---|
protected void doSetUp() throws java.lang.Exception
AbstractMuleTestCase
AbstractMuleTestCase.setUp()
in normal JUnit test cases. this is called before a test
method has been called.
doSetUp
in class AbstractMuleTestCase
java.lang.Exception
- if something fails that should halt the testcaseprotected Service createService() throws MuleException
MuleException
public void testSingleDoesNotRequireCopyRouterMatchAllFalse() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testSingleDoesNotRequireCopyRouterMatchAllTrue() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testSingleRequiresCopyRouterMatchAllFalse() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testSingleRequiresCopyRouterMatchAllTrue() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testMultipleDoesNotRequireCopyRouterMatchAllFalse() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testMultipleDoesNotRequireCopyRouterMatchAllTrue() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testMultipleRequiresCopyRouterMatchAllFalse() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testMultipleRequiresCopyRouterMatchAllTrue() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testMultipleMixMatchAllTrue() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testMultipleMixMatchAllFalse() throws java.lang.Exception
java.lang.Exception
- if the test fails!public void testStreamPayload() throws java.lang.Exception
java.lang.Exception
- if the test fails!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |