org.mule
Class MuleWorkManagerTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.MuleWorkManagerTestCase
- All Implemented Interfaces:
- Test, TestCaseWatchdogTimeoutHandler
public class MuleWorkManagerTestCase
- extends AbstractMuleTestCase
Tests the following behavior:
- ScheduleWorkExecutor - e.g. use the backing thread pool to execute work items asynchronously
- StartWorkExecutor - block till the work is started, then async
- SyncWorkExecutor - blocking executor, meaning we should be running in the very same thread.
It's not really important to make a distinction between scheduleWork()
and
startWork()
for this test, thus they just check for async execution.
Methods inherited from class org.mule.tck.AbstractMuleTestCase |
configureMuleContext, createMuleContext, createTestInfo, createWatchdog, disposeManager, doSetUp, doTearDown, getBuilder, getConfigurationResources, getName, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setName, setStartContext, setUp, suitePostTearDown, suitePreSetUp, tearDown |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
MuleWorkManagerTestCase
public MuleWorkManagerTestCase()
testDoWorkExecutesSynchronously
public void testDoWorkExecutesSynchronously()
throws Exception
- Throws:
Exception
testScheduleWorkExecutesAsynchronously
public void testScheduleWorkExecutesAsynchronously()
throws Exception
- Throws:
Exception
testStartWorkExecutesAsynchronously
public void testStartWorkExecutesAsynchronously()
throws Exception
- Throws:
Exception
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.