Class StatelessInterceptorTests
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.stateless.StatelessTestClient
org.apache.openejb.test.stateless.BasicStatelessLocalTestClient
org.apache.openejb.test.stateless.StatelessInterceptorTests
- All Implemented Interfaces:
junit.framework.Test
- Version:
- $Rev$ $Date$
-
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.stateless.BasicStatelessLocalTestClient
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.voidInvokes a business method which is to be intercepted from a 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 DDconcat()has been annotated withexclude-class-interceptorsMethods inherited from class org.apache.openejb.test.stateless.BasicStatelessLocalTestClient
castMethods inherited from class org.apache.openejb.test.TestClient
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, tearDown, 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
-
StatelessInterceptorTests
public StatelessInterceptorTests()
-
-
Method Details
-
setUp
Description copied from class:StatelessTestClientSets up the fixture, for example, open a network connection. This method is called before a test is executed.- Overrides:
setUpin classStatelessTestClient- Throws:
Exception
-
test01_interceptorChaining
public void test01_interceptorChaining()Invokes a business method which is to be intercepted from a 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 DDconcat()has been annotated withexclude-class-interceptors
-