| |
|
| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.transaction.A_TxAttribute
All known Subclasses: org.objectweb.jonas.jtests.clients.transaction.A_TxAttributeEntity, org.objectweb.jonas.jtests.clients.transaction.A_TxAttrSession,
A_TxAttribute | abstract public class A_TxAttribute extends JTestCase (Code) | | Transactional attribute test cases
tests here are common to entity and session beans.
beans used : transacted
author: Ph.Coq, Ph.Durieux (jonas team) |
A_TxAttribute | public A_TxAttribute(String name)(Code) | | constructor
Parameters: name - name of the test suite. |
getSimple | abstract public Simple getSimple(int i) throws Exception(Code) | | Get an instance of the bean.
This method depends on the home used to get it.
For entity bean, the arg is used to get a particular instance.
For session beans, we get any session bean from the pool.
|
setUp | protected void setUp()(Code) | | Sets up the fixture, here load the beans if not loaded yet.
This method is called before a test is executed.
|
testMandatory | public void testMandatory() throws Exception(Code) | | 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
|
testMandatoryTx | public void testMandatoryTx() throws Exception(Code) | | 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
|
testNever | public void testNever() throws Exception(Code) | | 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
|
testNeverTx | public void testNeverTx() throws Exception(Code) | | 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
|
testNoTx | public void testNoTx() throws Exception(Code) | | Test the sequence of several calls to methods
with different transactional contexts
|
testNotSupported | public void testNotSupported() throws Exception(Code) | | 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
|
testNotSupportedTx | public void testNotSupportedTx() throws Exception(Code) | | 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
|
testRequired | public void testRequired() throws Exception(Code) | | 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
|
testRequiredRequiresNew | public void testRequiredRequiresNew() throws Exception(Code) | | Test a "Required" method calling a "Requires_new" method.
the expected value is true
|
testRequiredRequiresNew2 | public void testRequiredRequiresNew2() throws Exception(Code) | | Test a "Required" method calling a "Requires_new" method on
another bean instance.
the expected value is true
|
testRequiredTx | public void testRequiredTx() throws Exception(Code) | | 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
|
testRequiresNew | public void testRequiresNew() throws Exception(Code) | | 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
|
testRequiresNewTx | public void testRequiresNewTx() throws Exception(Code) | | 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
|
testSupports | public void testSupports() throws Exception(Code) | | 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
|
testSupportsTx | public void testSupportsTx() throws Exception(Code) | | 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
|
|
|
|