|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.objectweb.jonas.jtests.util.JTestCase | +--org.objectweb.jonas.jtests.clients.transaction.A_TxAttribute
Transactional attribute test cases common for all type of beans (Entity/Session)
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase |
ictx, isInit, jonasName, msgerror, testtorun, utx |
Constructor Summary | |
A_TxAttribute(java.lang.String name)
|
Method Summary | |
abstract Simple |
getSimple(int i)
|
void |
testMandatory()
Test of Mandatory attribute A business method with Mandatory is called outside TX this method returns if the thread is associated to a transaction A javax.transaction.TransactionRequiredException must be received |
void |
testMandatoryTx()
Test of Mandatory attribute A business method with Mandatory is called inside TX this method returns if the thread is associated to a transaction the expected value is true |
void |
testNever()
Test of Never attribute A business method with Never is called outside TX this method returns if the thread is associated to a transaction the expected value is false |
void |
testNeverTx()
Test of Never attribute A business method with Mandatory is called inside TX this method returns if the thread is associated to a transaction A java.rmi.RemoteException must be received |
void |
testNotSupported()
Test of NotSupported attribute A business method with NotSupported is called outside TX this method returns if the thread is associated to a transaction the expected value is false |
void |
testNotSupportedTx()
Test of NotSupported attribute A business method with NotSupported is called inside TX this method returns if the thread is associated to a transaction the expected value is false |
void |
testNoTx()
Test the sequence of several calls to methods with different transactional contexts |
void |
testRequired()
Test of Required attribute A business method with Required is called outside TX this method returns if the thread is associated to a transaction the expected value is true |
void |
testRequiredRequiresNew()
Test a "Required" method calling a "Requires_new" method. the expected value is true |
void |
testRequiredRequiresNew2()
Test a "Required" method calling a "Requires_new" method on another bean instance. the expected value is true |
void |
testRequiredTx()
Test of Required attribute A business method with Required is called inside TX this method returns if the thread is associated to a transaction the expected value is true |
void |
testRequiresNew()
Test of RequiresNew attribute A business method with RequiresNew is called outside TX this method returns if the thread is associated to a transaction the expected value is true |
void |
testRequiresNewTx()
Test of RequiresNew attribute A business method with RequiresNew is called inside TX this method returns if the thread is associated to a transaction the expected value is true |
void |
testSupports()
Test of Supports attribute A business method with Supports is called outside TX this method returns if the thread is associated to a transaction the expected value is false |
void |
testSupportsTx()
Test of Supports attribute A business method with Supports is called inside TX this method returns if the thread is associated to a transaction the expected value is true |
Methods inherited from class org.objectweb.jonas.jtests.util.JTestCase |
debug, getDBEnv, random, setUp, sleep, tearDown, testEmpty, unloadBeans, useBeans |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public A_TxAttribute(java.lang.String name)
Method Detail |
public abstract Simple getSimple(int i) throws java.lang.Exception
public void testNotSupported() throws java.lang.Exception
public void testRequiresNew() throws java.lang.Exception
public void testRequired() throws java.lang.Exception
public void testRequiredRequiresNew() throws java.lang.Exception
public void testRequiredRequiresNew2() throws java.lang.Exception
public void testMandatory() throws java.lang.Exception
public void testNever() throws java.lang.Exception
public void testSupports() throws java.lang.Exception
public void testNotSupportedTx() throws java.lang.Exception
public void testRequiresNewTx() throws java.lang.Exception
public void testRequiredTx() throws java.lang.Exception
public void testMandatoryTx() throws java.lang.Exception
public void testNeverTx() throws java.lang.Exception
public void testSupportsTx() throws java.lang.Exception
public void testNoTx() throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |