| |
|
| java.lang.Object org.ow2.easybeans.tests.transaction.containermanaged.stateless.TestInheritance
TestInheritance | public class TestInheritance (Code) | | Verifies if the inheritance in container-managed transaction is
following the JSR 220.The item covered in this test are: 13.37.1.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Method Summary | |
public void | setup() Creates the stateless bean used during the tests. | public void | testClassDefinition() Verifies if the transaction attribute define for the class is the same
for all class methods. | public void | testMethodDefinition() Verifies if the transaction attribute defined in a method overrides the
class transaction attribute. | public void | testOverrideSuperclassDefinition1() Verifies if the transaction attribute defined in the class method overrides the
transaction attribute defined in the superclass. | public void | testOverrideSuperclassDefinition2() Verifies if the transaction attribute defined in the class method overrides the
transaction attribute defined in the superclass. |
setup | public void setup() throws Exception(Code) | | Creates the stateless bean used during the tests.
throws: Exception - if an error occurs during the lookup. |
testClassDefinition | public void testClassDefinition() throws Exception(Code) | | Verifies if the transaction attribute define for the class is the same
for all class methods. The class transaction attribute is never and the
method is called in a transaction context, so the method must throw an
exception.
throws: Exception - if an error occurs. |
testMethodDefinition | public void testMethodDefinition() throws Exception(Code) | | Verifies if the transaction attribute defined in a method overrides the
class transaction attribute. The method transaction attribute is
mandatory and the method is called without a transaction context, so the
method must throw an exception.
throws: Exception - if an error occurs. |
testOverrideSuperclassDefinition1 | public void testOverrideSuperclassDefinition1() throws Exception(Code) | | Verifies if the transaction attribute defined in the class method overrides the
transaction attribute defined in the superclass. The method transaction
attribute is mandatory and the method is called without a transaction
context, so the method must throw an exception.
throws: Exception - if an error occurs. |
testOverrideSuperclassDefinition2 | public void testOverrideSuperclassDefinition2() throws Exception(Code) | | Verifies if the transaction attribute defined in the class method overrides the
transaction attribute defined in the superclass. The method transaction
attribute is required, so the method must not throw an exception.
throws: Exception - if an error occurs. |
|
|
|