org.mule.endpoint
Class AbstractMessageProcessorTestCase
java.lang.Object
org.mule.tck.junit4.AbstractMuleTestCase
org.mule.tck.junit4.AbstractMuleContextTestCase
org.mule.endpoint.AbstractMessageProcessorTestCase
- Direct Known Subclasses:
- DynamicOutboundEndpointTestCase, ExceptionHandlingMessageProcessorTestCase, InboundEndpointMessageProcessorsTestCase, InboundEndpointTestCase, InboundExceptionDetailsProcessorTestCase, InboundNotificationMessageProcessorTestCase, OutboundEndpointMessageProcessorsTestCase, OutboundEndpointPropertyMessageProcessorTestCase, OutboundEndpointTestCase, OutboundNotificationMessageProcessorTestCase, OutboundResponsePropertiesMessageProcessorTestCase, OutboundTransformerMessageProcessorTestCase, OutboundTxRollbackMessageProcessorTestCase, SecurityFilterMessageProcessorTestCase
public abstract class AbstractMessageProcessorTestCase
- extends AbstractMuleContextTestCase
Method Summary |
protected void |
configureMuleContext(MuleContextBuilder builder)
Override this method to set properties of the MuleContextBuilder before it is
used to create the MuleContext. |
protected InboundEndpoint |
createTestInboundEndpoint(Filter filter,
SecurityFilter securityFilter,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
|
protected InboundEndpoint |
createTestInboundEndpoint(Filter filter,
SecurityFilter securityFilter,
Transformer transformer,
Transformer responseTransformer,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
|
protected InboundEndpoint |
createTestInboundEndpoint(Transformer transformer,
Transformer responseTransformer)
|
protected MuleEvent |
createTestInboundEvent(InboundEndpoint endpoint)
|
protected OutboundEndpoint |
createTestOutboundEndpoint(Filter filter,
EndpointSecurityFilter securityFilter,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
|
protected OutboundEndpoint |
createTestOutboundEndpoint(Filter filter,
EndpointSecurityFilter securityFilter,
Transformer transformer,
Transformer responseTransformer,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
|
protected OutboundEndpoint |
createTestOutboundEndpoint(String uri,
Filter filter,
SecurityFilter securityFilter,
Transformer transformer,
Transformer responseTransformer,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
|
protected OutboundEndpoint |
createTestOutboundEndpoint(Transformer transformer,
Transformer responseTransformer)
|
protected MuleEvent |
createTestOutboundEvent()
|
protected MuleEvent |
createTestOutboundEvent(MessagingExceptionHandler exceptionListener)
|
protected MuleMessage |
createTestResponseMuleMessage()
|
protected void |
customizeEndpointBuilder(EndpointBuilder endpointBuilder)
|
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() . |
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase |
addBuilders, 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 |
TEST_URI
protected static final String TEST_URI
- See Also:
- Constant Field Values
RESPONSE_MESSAGE
protected static String RESPONSE_MESSAGE
responseMessage
protected static MuleMessage responseMessage
echoEventAnswer
protected org.mockito.stubbing.Answer<MuleEvent> echoEventAnswer
AbstractMessageProcessorTestCase
public AbstractMessageProcessorTestCase()
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
configureMuleContext
protected void configureMuleContext(MuleContextBuilder builder)
- Description copied from class:
AbstractMuleContextTestCase
- Override this method to set properties of the MuleContextBuilder before it is
used to create the MuleContext.
- Overrides:
configureMuleContext
in class AbstractMuleContextTestCase
createTestInboundEndpoint
protected InboundEndpoint createTestInboundEndpoint(Transformer transformer,
Transformer responseTransformer)
throws EndpointException,
InitialisationException
- Throws:
EndpointException
InitialisationException
createTestInboundEndpoint
protected InboundEndpoint createTestInboundEndpoint(Filter filter,
SecurityFilter securityFilter,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
throws InitialisationException,
EndpointException
- Throws:
InitialisationException
EndpointException
createTestInboundEndpoint
protected InboundEndpoint createTestInboundEndpoint(Filter filter,
SecurityFilter securityFilter,
Transformer transformer,
Transformer responseTransformer,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
throws EndpointException,
InitialisationException
- Throws:
EndpointException
InitialisationException
createTestInboundEvent
protected MuleEvent createTestInboundEvent(InboundEndpoint endpoint)
throws Exception
- Throws:
Exception
createTestOutboundEndpoint
protected OutboundEndpoint createTestOutboundEndpoint(Transformer transformer,
Transformer responseTransformer)
throws EndpointException,
InitialisationException
- Throws:
EndpointException
InitialisationException
createTestOutboundEndpoint
protected OutboundEndpoint createTestOutboundEndpoint(Filter filter,
EndpointSecurityFilter securityFilter,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
throws InitialisationException,
EndpointException
- Throws:
InitialisationException
EndpointException
createTestOutboundEndpoint
protected OutboundEndpoint createTestOutboundEndpoint(Filter filter,
EndpointSecurityFilter securityFilter,
Transformer transformer,
Transformer responseTransformer,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
throws EndpointException,
InitialisationException
- Throws:
EndpointException
InitialisationException
createTestOutboundEndpoint
protected OutboundEndpoint createTestOutboundEndpoint(String uri,
Filter filter,
SecurityFilter securityFilter,
Transformer transformer,
Transformer responseTransformer,
MessageExchangePattern exchangePattern,
TransactionConfig txConfig)
throws EndpointException,
InitialisationException
- Throws:
EndpointException
InitialisationException
customizeEndpointBuilder
protected void customizeEndpointBuilder(EndpointBuilder endpointBuilder)
createTestOutboundEvent
protected MuleEvent createTestOutboundEvent()
throws Exception
- Throws:
Exception
createTestOutboundEvent
protected MuleEvent createTestOutboundEvent(MessagingExceptionHandler exceptionListener)
throws Exception
- Throws:
Exception
createTestResponseMuleMessage
protected MuleMessage createTestResponseMuleMessage()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.