Package org.apache.openejb.test.stateful
Class StatefulInterceptorTests
java.lang.Object
org.junit.Assert
org.apache.openejb.test.NumberedTestCase
org.apache.openejb.test.NamedTestCase
org.apache.openejb.test.TestClient
org.apache.openejb.test.stateful.StatefulTestClient
org.apache.openejb.test.stateful.BasicStatefulLocalTestClient
org.apache.openejb.test.stateful.StatefulInterceptorTests
- All Implemented Interfaces:
junit.framework.Test
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.openejb.test.NumberedTestCase
NumberedTestCase.NamedTest, NumberedTestCase.TestSetup, NumberedTestCase.TestTearDown -
Field Summary
Fields inherited from class org.apache.openejb.test.stateful.BasicStatefulLocalTestClient
ejbLocalHome, ejbLocalObjectFields inherited from class org.apache.openejb.test.TestClient
ejbHandle, ejbHomeHandle, ejbMetaData, ejbPrimaryKey, initialContextFields inherited from class org.apache.openejb.test.NamedTestCase
testNameFields inherited from class org.apache.openejb.test.NumberedTestCase
standardPrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetUp()Sets up the fixture, for example, open a network connection.protected voidtearDown()Tears down the fixture, for example, close a network connection.voidInvokes a business method which is to be intercepted by class, in-bean and at method level.voidInvokes just 1 business method on the bean.voidInvokes a business method which is annotated to be excluded from interception.voidInvokes a business method which is declared to be excluded from interception by the DDgetContextData()has been annotated with@ExcludesClassInterceptorsvoidInvokes a business method which is annotated to be excluded from interception.Methods inherited from class org.apache.openejb.test.TestClient
cast, processFieldInjections, processSetterInjectionsMethods inherited from class org.apache.openejb.test.NamedTestCase
nameMethods inherited from class org.apache.openejb.test.NumberedTestCase
countTestCases, createTest, createTestName, removePrefix, removePrefix, run, run, runTestMethod, toStringMethods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail
-
Constructor Details
-
StatefulInterceptorTests
public StatefulInterceptorTests()
-
-
Method Details
-
setUp
Description copied from class:StatefulTestClientSets up the fixture, for example, open a network connection. This method is called before a test is executed.- Overrides:
setUpin classStatefulTestClient- Throws:
Exception
-
tearDown
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.- Overrides:
tearDownin classNumberedTestCase- Throws:
Exception
-
test01_interceptorChaining
public void test01_interceptorChaining()Invokes a business method which is to be intercepted by class, in-bean and at method level. -
test02_methodProfile
public void test02_methodProfile()Invokes just 1 business method on the bean. The interceptor method stores the intercepted method's name and params in a map that is returned by thegetContextData -
test03_excludeClassInterceptors
public void test03_excludeClassInterceptors()Invokes a business method which is annotated to be excluded from interception.getContextData()has been annotated with@ExcludesClassInterceptors -
test04_excludeClassInterceptors_02
public void test04_excludeClassInterceptors_02()Invokes a business method which is declared to be excluded from interception by the DDgetContextData()has been annotated with@ExcludesClassInterceptors -
test05_PreDestroy
public void test05_PreDestroy()Invokes a business method which is annotated to be excluded from interception.getContextData()has been annotated with@ExcludesClassInterceptors
-