Class StatefulInterceptorTests

All Implemented Interfaces:
junit.framework.Test

public class StatefulInterceptorTests extends BasicStatefulLocalTestClient
  • Constructor Details

    • StatefulInterceptorTests

      public StatefulInterceptorTests()
  • Method Details

    • 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