Verifies if the container-managed transaction in the session bean is
following the JSR 220.The items covered in this test are: 12.6.2.5.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro
testGetRollbackOnlyWithoutUserTransaction() Calls the getRollbackOnly that must throw an exception for this type of
transaction attribute.The EJBTransactionRequiredException is thrown,
because the setRollbackOnly will be called without an transaction
context.
testSetRollbackOnlyWithoutUserTransaction() Calls the getRollbackOnly that must throw an exception for this type of
transaction attribute.The EJBTransactionRequiredException is thrown,
because the setRollbackOnly will be called without an transaction
context.
public void
testUsingClientTrans() Verifies if the container uses the same transaction that the client.
Method Detail
testGetRollbackOnlyWithUserTransaction
public void testGetRollbackOnlyWithUserTransaction() throws Exception(Code)
Calls the getRollbackOnly that must not throw any exception for this type
of transaction attribute.
throws: Exception - if an error occurs during the tests.
testGetRollbackOnlyWithoutUserTransaction
public void testGetRollbackOnlyWithoutUserTransaction() throws Exception(Code)
Calls the getRollbackOnly that must throw an exception for this type of
transaction attribute.The EJBTransactionRequiredException is thrown,
because the setRollbackOnly will be called without an transaction
context.
throws: Exception - if an error occurs during the tests.
testGetUserTransactionWithEJBContext
public void testGetUserTransactionWithEJBContext() throws Exception(Code)
public void testSetRollbackOnlyWithUserTransaction() throws Exception(Code)
Calls a setRollbackOnly and after inserts two tables. The container must
do a roll back before the method invocation completes. So, the tables
must not be created and a SQLException must be thrown when the test tries
to verify if the table exists.
throws: Exception - if an error occurs during the tests.
testSetRollbackOnlyWithoutUserTransaction
public void testSetRollbackOnlyWithoutUserTransaction() throws Exception(Code)
Calls the getRollbackOnly that must throw an exception for this type of
transaction attribute.The EJBTransactionRequiredException is thrown,
because the setRollbackOnly will be called without an transaction
context.
throws: Exception - if an error occurs during the tests.
Verifies if the container uses the same transaction that the client. The
client rollback must to force a bean rollback, because the both use the
same transaction.
throws: Exception - if an error during the tests occurs.
Fields inherited from org.ow2.easybeans.tests.transaction.containermanaged.base.TestContainerTransactionBase