Method Summary |
|
abstract public void | createBeanApp() Creates a bean that throws always an application exception that extends
Exception and has a the rollback element as false. |
public void | createBeanApp(Class beanClass) Gets a new instance of the bean used in the application exception (with
rollback=false) tests. |
abstract public void | createBeanApp01() Creates a bean that throws always an application exception that extends
RuntimeException and has a the rollback element as false. |
public void | createBeanApp01(Class beanClass) Gets a new instance of the bean used in the application exception that
extends a runtime exception (with rollback=false) tests. |
abstract public void | createBeanApp02() Creates a bean that throws always a application exception that extends
RuntimeException and has a the rollback element as true. |
public void | createBeanApp02(Class beanClass) Gets a new instance of the bean used in the application exception that
extends a runtime exception (with rollback=true) tests. |
abstract public void | createBeanRollback() Creates a bean that throws always an application exception that extends
Exception and has a the rollback element as true. |
public void | createBeanRollback(Class beanClass) Gets a new instance of the bean used in the application exception (with
rollback=true) tests. |
abstract public void | createBeanRuntime() Creates a bean that throws always a runtime exception. |
public void | createBeanRuntime(Class beanClass) Gets a new instance of the bean used in the runtime exception tests. |
public void | deleteTable() Deletes the tables created during test. |
public void | setup() Initiates all things needed to execute the tests. |
public void | testNotUsingClientTransWithAppException() Verifies if the container re-throws the application exception that
extends Exception(with rollback = false) and does not do the rollback in
this case. |
public void | testNotUsingClientTransWithAppRollbackException() Verifies if the container re-throws the application exception that
extends Exception (with rollback = true) and marks the transaction for
rollback if there is transaction context. |
public void | testNotUsingClientTransWithAppRuntimeException() Verifies if the container re-throws the application exception that
extends a runtime exception (with rollback = false) and does not do the
rollback in this case. |
public void | testNotUsingClientTransWithAppRuntimeRollbackException() Verifies if the container re-throws the application exception that
extends a runtime exception (with rollback = true) and marks the
transaction for rollback in this case. |
public void | testNotUsingClientTransWithRuntimeException() Verifies if the container throws the EJBException when the bean throws a
RuntimeException, discards the bean and does the rollback in this case. |
public void | testUsingClientTransWithAppException() Verifies if the container re-throws the application exception that
extends Exception(with rollback = false) and does not do the rollback in
this case.This test uses a client transaction. |
public void | testUsingClientTransWithAppRollbackException(boolean canCommit) Verifies if the container re-throws the application exception that
extends Exception(with rollback = true) and marks the transaction for
rollback in some cases.This test uses a client transaction.
Parameters: canCommit - true if the container does not need to mark thetransaction as rollback(transaction attribute: NotSupported,Never). |
public void | testUsingClientTransWithAppRuntimeException() Verifies if the container re-throws the application exception that
extends a runtime exception (with rollback = false) and does not do the
rollback in this case. |
public void | testUsingClientTransWithAppRuntimeRollbackException(boolean canCommit) Verifies if the container re-throws the application exception that
extends a runtime exception (with rollback = true) and marks the
transaction for rollback in this case. |
public void | testUsingClientTransWithRuntimeException(Class expectedException, boolean canCommit) Verifies if the container throws the correct exception (EJBException for
RequiresNew and NotSupports, and EJBTransactionRolledbackException for
Require, Supports and Mandatory) when the bean throws a RuntimeException,
discards the bean and does the rollback if the bean uses the client transaction. |