org.mule.routing.outbound
Class ExceptionBasedRouterTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.mule.tck.AbstractMuleTestCase
              extended byorg.mule.routing.outbound.ExceptionBasedRouterTestCase
All Implemented Interfaces:
Test

public class ExceptionBasedRouterTestCase
extends org.mule.tck.AbstractMuleTestCase


Nested Class Summary
 
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
logger
 
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
addTest, disposeManager, doSetUp, doTearDown, finalize, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isOffline, run, runBare, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreSetUp, suitePreTearDown, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, setName, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionBasedRouterTestCase

public ExceptionBasedRouterTestCase()
Method Detail

testSuccessfulExceptionRouter

public void testSuccessfulExceptionRouter()
                                   throws Exception
Multiple endpoints, no failures. Event 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.