org.mule.routing.outbound
Class ExceptionBasedRouterTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.routing.outbound.ExceptionBasedRouterTestCase
All Implemented Interfaces:
Test, TestCaseWatchdogTimeoutHandler

public class ExceptionBasedRouterTestCase
extends AbstractMuleTestCase


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, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Constructor Summary
ExceptionBasedRouterTestCase()
           
 
Method Summary
 void testBothFailing()
          Both endpoints fail during dispatch.
 void testFailFirstSuccessSecondAsync()
          The first endpoint fails, second succeeds.
 void testFailFirstSuccessSecondSync()
          The first endpoint fails, second succeeds.
 void testFirstHadExceptionPayloadSuccessSecondSyncWithExceptionPayload()
          The first endpoint contains exception payload in return message, second succeeds.
 void testSuccessfulExceptionRouter()
          Multiple endpoints, no failures.
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
configureMuleContext, createMuleContext, createTestInfo, createWatchdog, disposeManager, doSetUp, doTearDown, getBuilder, getConfigurationResources, getName, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setName, setStartContext, setUp, suitePostTearDown, suitePreSetUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionBasedRouterTestCase

public ExceptionBasedRouterTestCase()
Method Detail

testSuccessfulExceptionRouter

public void testSuccessfulExceptionRouter()
                                   throws Exception
Multiple endpoints, no failures. MuleEvent dispatched asynchronously, but forced into sync mode. Test case ends here.

Throws:
Exception

testBothFailing

public void testBothFailing()
                     throws Exception
Both endpoints fail during dispatch. The first endpoint should be forced into sync mode.

Throws:
Exception

testFailFirstSuccessSecondSync

public void testFailFirstSuccessSecondSync()
                                    throws Exception
The first endpoint fails, second succeeds. Events are being sent synchronously.

Throws:
Exception

testFailFirstSuccessSecondAsync

public void testFailFirstSuccessSecondAsync()
                                     throws Exception
The first endpoint fails, second succeeds. Events are being forced into a sync mode, until we reach the last one.

Throws:
Exception

testFirstHadExceptionPayloadSuccessSecondSyncWithExceptionPayload

public void testFirstHadExceptionPayloadSuccessSecondSyncWithExceptionPayload()
                                                                       throws Exception
The first endpoint contains exception payload in return message, second succeeds. Events are being sent synchronously.

Throws:
Exception


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.