org.apache.openejb.test.stateless
Class StatelessInterceptorTests

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.stateless.StatelessTestClient
                      extended by org.apache.openejb.test.stateless.BasicStatelessLocalTestClient
                          extended by org.apache.openejb.test.stateless.StatelessInterceptorTests
All Implemented Interfaces:
junit.framework.Test

public class StatelessInterceptorTests
extends BasicStatelessLocalTestClient

Version:
$Rev: 607077 $ $Date: 2007-12-27 15:55:23 +0100 (Do, 27. Dez 2007) $
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.stateless.BasicStatelessLocalTestClient
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
StatelessInterceptorTests()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
 void test01_interceptorChaining()
          Invokes a business method which is to be intercepted from a 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 concat() has been annotated with exclude-class-interceptors
 
Methods inherited from class org.apache.openejb.test.stateless.BasicStatelessLocalTestClient
cast
 
Methods inherited from class org.apache.openejb.test.TestClient
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, tearDown, 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

StatelessInterceptorTests

public StatelessInterceptorTests()
Method Detail

setUp

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

Overrides:
setUp in class StatelessTestClient
Throws:
java.lang.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 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 concat() has been annotated with exclude-class-interceptors



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