org.mule.processor
Class AsyncDelegateMessageProcessorTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.processor.AsyncDelegateMessageProcessorTestCase
All Implemented Interfaces:
ExceptionListener

public class AsyncDelegateMessageProcessorTestCase
extends AbstractMuleContextTestCase
implements ExceptionListener


Field Summary
protected  Exception exceptionThrown
           
protected  Latch latch
           
protected  AsyncDelegateMessageProcessor messageProcessor
           
protected  org.mule.processor.AsyncDelegateMessageProcessorTestCase.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
AsyncDelegateMessageProcessorTestCase()
           
 
Method Summary
protected  void assertAsync(MessageProcessor processor, MuleEvent event)
           
protected  void assertSync(MessageProcessor processor, MuleEvent event)
           
protected  AsyncDelegateMessageProcessor createAsyncDelegatMessageProcessor(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()
           
 
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 AsyncDelegateMessageProcessor messageProcessor

target

protected org.mule.processor.AsyncDelegateMessageProcessorTestCase.TestListener target

exceptionThrown

protected Exception exceptionThrown

latch

protected Latch latch
Constructor Detail

AsyncDelegateMessageProcessorTestCase

public AsyncDelegateMessageProcessorTestCase()
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

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

createAsyncDelegatMessageProcessor

protected AsyncDelegateMessageProcessor createAsyncDelegatMessageProcessor(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.