|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.tck.junit4.AbstractMuleTestCase org.mule.tck.junit4.AbstractMuleContextTestCase org.mule.transport.ConnectorLifecycleTestCase
public class ConnectorLifecycleTestCase
Tests that lifecycle methods on a connector are not processed more than once. (@see MULE-3062) Also test lifecycle of a connector dispatchers, receivers, workManagers and scheduler.
Field Summary |
---|
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 | |
---|---|
ConnectorLifecycleTestCase()
|
Method Summary | |
---|---|
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()
|
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 |
Constructor Detail |
---|
public ConnectorLifecycleTestCase()
Method Detail |
---|
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 testReceiversLifecycle() throws Exception
Exception
public void testReceiversServiceLifecycle() throws Exception
Exception
public void testDispatchersLifecycle() throws Exception
Exception
public void testDispatcherFullLifecycle() throws Exception
Exception
public void testRequestersLifecycle() throws Exception
Exception
public void testRequesterFullLifecycle() throws Exception
Exception
public void testWorkManagerLifecycle() throws MuleException, javax.resource.spi.work.WorkException
MuleException
javax.resource.spi.work.WorkException
public void testSchedulerLifecycle() throws MuleException, javax.resource.spi.work.WorkException
MuleException
javax.resource.spi.work.WorkException
protected javax.resource.spi.work.Work createSomeWork()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |