public class ConnectorLifecycleTestCase extends AbstractMuleContextTestCase
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 |
---|
ConnectorLifecycleTestCase() |
Modifier and Type | Method and Description |
---|---|
protected javax.resource.spi.work.Work |
createSomeWork() |
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 |
doTearDown()
Enables the adding of extra behavior on the tear down stage of a test
before the mule context is disposed in
AbstractMuleContextTestCase.disposeContextPerTest() . |
void |
testDispatcherFullLifecycle() |
void |
testDispatchersLifecycle() |
void |
testDoubleDisposeConnector()
This test ensures that the connector is only disposed once even on a
direct disposal (not through Mule).
|
void |
testDoubleDisposeConnectorStartOnly()
This test ensures that the connector is only disposed once even on a
direct disposal (not through Mule).
|
void |
testDoubleDisposeConnectorStartStop()
This test ensures that the connector is only disposed once even on a
direct disposal (not through Mule).
|
void |
testDoubleInitialiseConnector()
This test ensures that the connector is only initialised once even on a
direct initialisation (not through Mule).
|
void |
testDoubleStartConnector()
This test ensures that the connector is only started once even on a
direct restart (not through Mule).
|
void |
testDoubleStopConnector()
This test ensures that the connector is only stopped once even on a
direct restop (not through Mule).
|
void |
testReceiversLifecycle() |
void |
testReceiversServiceLifecycle() |
void |
testRequesterFullLifecycle() |
void |
testRequestersLifecycle() |
void |
testSchedulerLifecycle() |
void |
testWorkManagerLifecycle() |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDownAfterMuleContextDispose, getBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, 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
public 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 casepublic void doTearDown() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.disposeContextPerTest()
.
Under normal circumstances this method could be replace with a
@After
annotated method.
doTearDown
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the testcasepublic void testDoubleInitialiseConnector() throws Exception
Exception
- if things go pear-shapedpublic void testDoubleStartConnector() throws Exception
Exception
- if things go pear-shapedpublic void testDoubleStopConnector() throws Exception
Exception
- if things go pear-shapedpublic void testDoubleDisposeConnectorStartStop() throws Exception
Exception
- if things go pear-shapedpublic void testDoubleDisposeConnectorStartOnly() throws Exception
Exception
- if things go pear-shapedpublic void testDoubleDisposeConnector() throws Exception
Exception
- if things go pear-shapedpublic void testReceiversServiceLifecycle() throws Exception
Exception
public void testDispatcherFullLifecycle() throws Exception
Exception
public void testRequesterFullLifecycle() throws Exception
Exception
public void testWorkManagerLifecycle() throws MuleException, javax.resource.spi.work.WorkException
public void testSchedulerLifecycle() throws MuleException, javax.resource.spi.work.WorkException
protected javax.resource.spi.work.Work createSomeWork()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.