|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractTxThreadAssociationTestCase
public abstract class AbstractTxThreadAssociationTestCase
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary | |
---|---|
protected static int |
TRANSACTION_TIMEOUT_SECONDS
|
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs |
Constructor Summary | |
---|---|
AbstractTxThreadAssociationTestCase()
|
Method Summary | |
---|---|
protected void |
doSetUp()
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. |
protected TransactionManager |
getTransactionManager()
|
protected abstract TransactionManagerFactory |
getTransactionManagerFactory()
|
void |
testAlwaysBeginXaTransactionSuspendResume()
AlwaysBegin action suspends current transaction and begins a new one. |
void |
testNoNestedTxStarted()
This is a former TransactionTemplateTestCase. |
void |
testNoneXaTransactionSuspendResume()
NONE action suspends current transaction and begins a new one. |
void |
testTxHandleCommitKeepsThreadAssociation()
|
void |
testTxManagerCommitDissassociatesThread()
|
void |
testTxManagerRollbackDissassociatesThread()
|
void |
testXaTransactionTermination()
This is a former XaTransactionTestCase. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runTest, toString |
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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int TRANSACTION_TIMEOUT_SECONDS
Constructor Detail |
---|
public AbstractTxThreadAssociationTestCase()
Method Detail |
---|
protected void doSetUp() throws Exception
AbstractMuleTestCase
AbstractMuleTestCase.setUp()
in normal JUnit test cases. this is called before a test
method has been called.
doSetUp
in class AbstractMuleTestCase
Exception
- if something fails that should halt the testcasepublic void testTxHandleCommitKeepsThreadAssociation() throws Exception
Exception
public void testTxManagerCommitDissassociatesThread() throws Exception
Exception
public void testTxManagerRollbackDissassociatesThread() throws Exception
Exception
public void testAlwaysBeginXaTransactionSuspendResume() throws Exception
Exception
- if any errorpublic void testNoneXaTransactionSuspendResume() throws Exception
Exception
- if any errorpublic void testXaTransactionTermination() throws Exception
Exception
- in case of any errorpublic void testNoNestedTxStarted() throws Exception
Exception
- in case of any errorprotected TransactionManager getTransactionManager()
protected abstract TransactionManagerFactory getTransactionManagerFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |