| |
|
| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.transaction.B_TxAttribute
All known Subclasses: org.objectweb.jonas.jtests.clients.transaction.G_TxAttributeSY,
B_TxAttribute | abstract public class B_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) |
B_TxAttribute | public B_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.
|
testGetSimpleOptRequiredRemove | public void testGetSimpleOptRequiredRemove() 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
|
testGetSimpleOptRequiredRemoveInTx | public void testGetSimpleOptRequiredRemoveInTx() 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
|
testGetSimpleOptRequiresNewRemove | public void testGetSimpleOptRequiresNewRemove() 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
|
testGetSimpleOptRequiresNewRemoveInTx | public void testGetSimpleOptRequiresNewRemoveInTx() 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
|
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
|
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
|
testSimpleOptNotSupportedRemove | public void testSimpleOptNotSupportedRemove() 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
|
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
|
|
|
|