| |
|
| java.lang.Object org.ow2.easybeans.tests.transaction.beanmanaged.TestBeanManagedException
TestBeanManagedException | public class TestBeanManagedException (Code) | | Verifies if the bean-managed transaction and the exceptions are correctly
managed by the container.The item couvered in this test is: 14.3.1(table 15).
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Method Summary | |
public void | deleteTable() Deletes the table used during the test. | public void | insertTableWithAppException() Verifies if the container only throws the application exception when it
occurs in a bean-managed exception. | public void | insertTableWithRuntimeException() Verifies if the container manages a runtime exception in a bean-management transaction. | public void | setup() Creates the bean used during the tests and binds the databases used. |
deleteTable | public void deleteTable()(Code) | | Deletes the table used during the test.
|
insertTableWithAppException | public void insertTableWithAppException() throws Exception(Code) | | Verifies if the container only throws the application exception when it
occurs in a bean-managed exception.
throws: Exception - if an error occurs. |
insertTableWithRuntimeException | public void insertTableWithRuntimeException() throws Exception(Code) | | Verifies if the container manages a runtime exception in a bean-management transaction. The container must:
Log the exception
Mark the transaction for rollback
Discard the bean
Throw EJBEXception
throws: Exception - if an error occurs. |
setup | public void setup() throws Exception(Code) | | Creates the bean used during the tests and binds the databases used.
throws: Exception - if an error during the test startup occurs. |
|
|
|