org.apache.openejb.test.stateful
Class StatefulInterceptorTests

java.lang.Object
  extended by junit.framework.Assert
      extended by org.apache.openejb.test.NumberedTestCase
          extended by org.apache.openejb.test.NamedTestCase
              extended by org.apache.openejb.test.TestClient
                  extended by org.apache.openejb.test.stateful.StatefulTestClient
                      extended by org.apache.openejb.test.stateful.BasicStatefulLocalTestClient
                          extended by org.apache.openejb.test.stateful.StatefulInterceptorTests
All Implemented Interfaces:
junit.framework.Test

public class StatefulInterceptorTests
extends BasicStatefulLocalTestClient

Author:
David Blevins, Prasad Kashyap

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, ejbLocalObject
 
Fields inherited from class org.apache.openejb.test.TestClient
ejbHandle, ejbHomeHandle, ejbMetaData, ejbPrimaryKey, initialContext
 
Fields inherited from class org.apache.openejb.test.NamedTestCase
testName
 
Fields inherited from class org.apache.openejb.test.NumberedTestCase
standardPrefix
 
Constructor Summary
StatefulInterceptorTests()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void test01_interceptorChaining()
          Invokes a business method which is to be intercepted by class, in-bean and at method level.
 void test02_methodProfile()
          Invokes just 1 business method on the bean.
 void test03_excludeClassInterceptors()
          Invokes a business method which is annotated to be excluded from interception.
 void test04_excludeClassInterceptors_02()
          Invokes a business method which is declared to be excluded from interception by the DD getContextData() has been annotated with @ExcludesClassInterceptors
 void test05_PreDestroy()
          Invokes a business method which is annotated to be excluded from interception.
 
Methods inherited from class org.apache.openejb.test.TestClient
cast, processFieldInjections, processSetterInjections
 
Methods inherited from class org.apache.openejb.test.NamedTestCase
name
 
Methods inherited from class org.apache.openejb.test.NumberedTestCase
countTestCases, createTest, createTestName, removePrefix, removePrefix, run, run, runTestMethod, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatefulInterceptorTests

public StatefulInterceptorTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Description copied from class: StatefulTestClient
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class StatefulTestClient
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

Overrides:
tearDown in class NumberedTestCase
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 the getContextData


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 DD getContextData() 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



Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.