org.mule.tck
Class AbstractTxThreadAssociationTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractTxThreadAssociationTestCase
- All Implemented Interfaces:
- Test, TestCaseWatchdogTimeoutHandler
public abstract class AbstractTxThreadAssociationTestCase
- extends AbstractMuleTestCase
Validate certain expectations when working with JTA API. It is called to catch discrepancies in TM implementations
and alert early. Subclasses are supposed to plug in specific transaction managers for tests.
Methods inherited from class org.mule.tck.AbstractMuleTestCase |
createMuleContext, createTestInfo, createWatchdog, disposeManager, doTearDown, getBuilder, getConfigurationResources, getName, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInboundEndpoint, getTestInfo, 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 |
TRANSACTION_TIMEOUT_SECONDS
protected static final int TRANSACTION_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
AbstractTxThreadAssociationTestCase
public AbstractTxThreadAssociationTestCase()
doSetUp
protected void doSetUp()
throws Exception
- Overrides:
doSetUp
in class AbstractMuleTestCase
- Throws:
Exception
testTxHandleCommitKeepsThreadAssociation
public void testTxHandleCommitKeepsThreadAssociation()
throws Exception
- Throws:
Exception
testTxManagerCommitDissassociatesThread
public void testTxManagerCommitDissassociatesThread()
throws Exception
- Throws:
Exception
testTxManagerRollbackDissassociatesThread
public void testTxManagerRollbackDissassociatesThread()
throws Exception
- Throws:
Exception
testAlwaysBeginXaTransactionSuspendResume
public void testAlwaysBeginXaTransactionSuspendResume()
throws Exception
- AlwaysBegin action suspends current transaction and begins a new one.
- Throws:
Exception
- if any error
testXaTransactionTermination
public void testXaTransactionTermination()
throws Exception
- This is a former XaTransactionTestCase.
- Throws:
Exception
- in case of any error
testNoNestedTxStarted
public void testNoNestedTxStarted()
throws Exception
- This is a former TransactionTemplateTestCase.
http://mule.mulesource.org/jira/browse/MULE-1494
- Throws:
Exception
- in case of any error
getTransactionManager
protected TransactionManager getTransactionManager()
getTransactionManagerFactory
protected abstract TransactionManagerFactory getTransactionManagerFactory()
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.