org.mule.processor
Class AsyncInterceptingMessageProcessorTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.processor.AsyncInterceptingMessageProcessorTestCase
All Implemented Interfaces:
ExceptionListener
Direct Known Subclasses:
LaxAsyncInterceptingMessageProcessorTestCase, SedaStageInterceptingMessageProcessorTestCase

public class AsyncInterceptingMessageProcessorTestCase
extends AbstractMuleContextTestCase
implements ExceptionListener


Field Summary
protected  Exception exceptionThrown
           
protected  Latch latch
           
protected  AsyncInterceptingMessageProcessor messageProcessor
           
protected  org.mule.processor.AsyncInterceptingMessageProcessorTestCase.TestListener target
           
 
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
AsyncInterceptingMessageProcessorTestCase()
           
 
Method Summary
protected  void assertAsync(MessageProcessor processor, MuleEvent event)
           
protected  void assertSync(MessageProcessor processor, MuleEvent event)
           
protected  AsyncInterceptingMessageProcessor createAsyncInterceptingMessageProcessor(MessageProcessor listener)
           
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 exceptionThrown(Exception e)
           
 void testProcessOneWay()
           
 void testProcessOneWayWithTx()
           
 void testProcessRequestResponse()
           
 void testProcessRequestResponseWithTx()
           
 void testWorkException()
           
 void testWorkMessagingException()
           
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, 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
 

Field Detail

messageProcessor

protected AsyncInterceptingMessageProcessor messageProcessor

target

protected org.mule.processor.AsyncInterceptingMessageProcessorTestCase.TestListener target

exceptionThrown

protected Exception exceptionThrown

latch

protected Latch latch
Constructor Detail

AsyncInterceptingMessageProcessorTestCase

public AsyncInterceptingMessageProcessorTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws Exception
Description copied from class: AbstractMuleContextTestCase
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().

Under normal circumstances this method could be replaced by a @Before annotated method.

Overrides:
doSetUp in class AbstractMuleContextTestCase
Throws:
Exception - if something fails that should halt the test case

testProcessOneWay

public void testProcessOneWay()
                       throws Exception
Throws:
Exception

testProcessRequestResponse

public void testProcessRequestResponse()
                                throws Exception
Throws:
Exception

testProcessOneWayWithTx

public void testProcessOneWayWithTx()
                             throws Exception
Throws:
Exception

testProcessRequestResponseWithTx

public void testProcessRequestResponseWithTx()
                                      throws Exception
Throws:
Exception

testWorkMessagingException

public void testWorkMessagingException()
                                throws Exception
Throws:
Exception

testWorkException

public void testWorkException()
                       throws Exception
Throws:
Exception

assertSync

protected void assertSync(MessageProcessor processor,
                          MuleEvent event)
                   throws MuleException
Throws:
MuleException

assertAsync

protected void assertAsync(MessageProcessor processor,
                           MuleEvent event)
                    throws MuleException,
                           InterruptedException
Throws:
MuleException
InterruptedException

createAsyncInterceptingMessageProcessor

protected AsyncInterceptingMessageProcessor createAsyncInterceptingMessageProcessor(MessageProcessor listener)
                                                                             throws Exception
Throws:
Exception

exceptionThrown

public void exceptionThrown(Exception e)
Specified by:
exceptionThrown in interface ExceptionListener


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.