org.mule.routing.outbound
Class ExceptionBasedRouterTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.routing.outbound.ExceptionBasedRouterTestCase

public class ExceptionBasedRouterTestCase
extends AbstractMuleContextTestCase


Field Summary
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
ExceptionBasedRouterTestCase()
           
 
Method Summary
 void testBothFailing()
          Both targets 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 testSuccessfulExceptionRouterSynchronous()
          Multiple targets, no failures.
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doTearDown, getBuilder, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionBasedRouterTestCase

public ExceptionBasedRouterTestCase()
Method Detail

testSuccessfulExceptionRouterSynchronous

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

Throws:
Exception

testBothFailing

public void testBothFailing()
                     throws Exception
Both targets 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-2012 MuleSoft, Inc.. All Rights Reserved.