| java.lang.Object org.ow2.easybeans.tests.deploymentdesc.TestOverriden00
TestOverriden00 | public class TestOverriden00 (Code) | | Verifies if the deployment descriptor overrides the bean annotation.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Method Summary | |
public void | setup() Creates the stateful bean used during the tests. | public void | testLocalInjection() Verifies if the injection works when the local interface and the bean
name are used. | public void | testLookupLocal() Verififes if the lookup works when a local interface is used. | public void | testLookupRemote() Verififes if the lookup works when a local interface is used. | public void | testRemoteInjection() Verifies if the injection works when the remotel interface and the bean
name are used. | public void | testTransactionType() Verifies if the container overrides the transaction type when a
deployment descriptor is used. |
setup | public void setup() throws Exception(Code) | | Creates the stateful bean used during the tests.
throws: Exception - if an error occurs during the lookup. |
testLocalInjection | public void testLocalInjection()(Code) | | Verifies if the injection works when the local interface and the bean
name are used. The bean has a different name defined in the annotation
and in the deployment descriptor,and the local interface defined in the
deployment descriptor is different too. The test uses the values defined
in the deployment descriptor.
|
testLookupLocal | public void testLookupLocal() throws Exception(Code) | | Verififes if the lookup works when a local interface is used. The
interface defined as local in the deployment descriptor is different of
the interface defined in the bean class. The test uses the values defined
in the deployment descriptor.
throws: Exception - if a lookup error occurs. |
testLookupRemote | public void testLookupRemote() throws Exception(Code) | | Verififes if the lookup works when a local interface is used. The
interface defined as remote in the deployment descriptor is different of
the interface defined in the bean class. The test uses the values defined
in the deployment descriptor.
throws: Exception - if a lookup error occurs. |
testRemoteInjection | public void testRemoteInjection()(Code) | | Verifies if the injection works when the remotel interface and the bean
name are used. The bean has a different name defined in the annotation
and in the deployment descriptor,and the remote interface defined in the
deployment descriptor is different too. The test uses the values defined
in the deployment descriptor.
|
testTransactionType | public void testTransactionType() throws IllegalStateException, SecurityException, HeuristicMixedException, HeuristicRollbackException, RollbackException, SystemException, NotSupportedException, NamingException(Code) | | Verifies if the container overrides the transaction type when a
deployment descriptor is used. The transaction type defined in the bean
is container managed, but the transaction type defined in the deployment
descriptor is bean managed.The bean gets an instance of an user
transaction. If the transaction is bean managed, the operation must not
throw an exception.
throws: NamingException - if a lookup error occurs. throws: SystemException - if an unexpected error occurs. throws: NotSupportedException - if the resquest cannot be made. throws: HeuristicRollbackException - if a heuristic decision was made andsome relevant update was rolled back. throws: RollbackException - if the transaction was rolled back instead ofcommitted. throws: HeuristicMixedException - if a heuristic decision was made and somerelevant update was commited and others rolled back. throws: IllegalStateException - if there is an illegal state throws: SecurityException - if there is a security exception |
|
|