public abstract class AbstractMessageProcessorTestCase extends AbstractMuleContextTestCase
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMessageProcessorTestCase.ExceptionThrowingMessageProcessr |
class |
AbstractMessageProcessorTestCase.ObjectAwareProcessor |
static class |
AbstractMessageProcessorTestCase.TestEndpointMessageNotificationListener |
static class |
AbstractMessageProcessorTestCase.TestExceptionListener |
static class |
AbstractMessageProcessorTestCase.TestFilter |
static class |
AbstractMessageProcessorTestCase.TestListener |
static class |
AbstractMessageProcessorTestCase.TestSecurityNotificationListener |
Modifier and Type | Field and Description |
---|---|
protected org.mockito.stubbing.Answer<MuleEvent> |
echoEventAnswer |
protected static String |
RESPONSE_MESSAGE |
protected static MuleMessage |
responseMessage |
protected static String |
TEST_URI |
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
AbstractMessageProcessorTestCase() |
addBuilders, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getNonBlockingResponse, getNonBlockingTestEventUsingFlow, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
protected static final String TEST_URI
protected static String RESPONSE_MESSAGE
protected static MuleMessage responseMessage
protected org.mockito.stubbing.Answer<MuleEvent> echoEventAnswer
protected void doSetUp() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.setUpMuleContext()
.
Under normal circumstances this method could be replaced by a
@Before
annotated method.
doSetUp
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the test caseprotected void configureMuleContext(MuleContextBuilder builder)
AbstractMuleContextTestCase
configureMuleContext
in class AbstractMuleContextTestCase
protected InboundEndpoint createTestInboundEndpoint(Transformer transformer, Transformer responseTransformer) throws EndpointException, InitialisationException
protected InboundEndpoint createTestInboundEndpoint(Filter filter, SecurityFilter securityFilter, MessageExchangePattern exchangePattern, TransactionConfig txConfig) throws InitialisationException, EndpointException
protected InboundEndpoint createTestInboundEndpoint(Filter filter, SecurityFilter securityFilter, Transformer transformer, Transformer responseTransformer, MessageExchangePattern exchangePattern, TransactionConfig txConfig) throws EndpointException, InitialisationException
protected MuleEvent createTestInboundEvent(InboundEndpoint endpoint) throws Exception
Exception
protected OutboundEndpoint createTestOutboundEndpoint(Transformer transformer, Transformer responseTransformer) throws EndpointException, InitialisationException
protected OutboundEndpoint createTestOutboundEndpoint(Filter filter, EndpointSecurityFilter securityFilter, MessageExchangePattern exchangePattern, TransactionConfig txConfig) throws InitialisationException, EndpointException
protected OutboundEndpoint createTestOutboundEndpoint(Filter filter, EndpointSecurityFilter securityFilter, Transformer transformer, Transformer responseTransformer, MessageExchangePattern exchangePattern, TransactionConfig txConfig) throws EndpointException, InitialisationException
protected OutboundEndpoint createTestOutboundEndpoint(String uri, Filter filter, SecurityFilter securityFilter, Transformer transformer, Transformer responseTransformer, MessageExchangePattern exchangePattern, TransactionConfig txConfig) throws EndpointException, InitialisationException
protected void customizeEndpointBuilder(EndpointBuilder endpointBuilder)
protected MuleEvent createTestOutboundEvent() throws Exception
Exception
protected MuleEvent createTestOutboundEvent(MessagingExceptionHandler exceptionListener) throws Exception
Exception
protected MuleMessage createTestResponseMuleMessage()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.