org.objectweb.easybeans.tests.interceptors.business
Class TestWrongSpecification

java.lang.Object
  extended by org.objectweb.easybeans.tests.interceptors.business.TestWrongSpecification

public class TestWrongSpecification
extends java.lang.Object

This tests verifies business interceptors that were developed without following the JSR220 spec.

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Constructor Summary
TestWrongSpecification()
           
 
Method Summary
 void testWrongSpec00()
          This test should cause an enhancer exception.
 void testWrongSpec01()
          Verifies if an interceptor class with args doesn't compile.
 void testWrongSpec02()
          This test should cause an enhancer exception.
 void testWrongSpec03()
          This test should cause an enhancer exception.
 void testWrongSpec04()
          Verifies if an interceptor class with a static method modifier compile.
 void testWrongSpec05()
          Verifies if an interceptor class with a final method modifier compile.
 void testWrongSpec06()
          This method should cause an exception.
 void testWrongSpec07()
          Verifies if a bean class with a static interceptor method compiles.
 void testWrongSpec08()
          Verifies if a bean class with a final interceptor method compiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestWrongSpecification

public TestWrongSpecification()
Method Detail

testWrongSpec00

public void testWrongSpec00()
                     throws java.lang.Exception
This test should cause an enhancer exception. Verify if an interceptor class with two "@AroundInvoke" doesn't compile.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec01

public void testWrongSpec01()
                     throws java.lang.Exception
Verifies if an interceptor class with args doesn't compile.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec02

public void testWrongSpec02()
                     throws java.lang.Exception
This test should cause an enhancer exception. Verifies if a bean class with two "@AroundInvoke" doesn't compile.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec03

public void testWrongSpec03()
                     throws java.lang.Exception
This test should cause an enhancer exception. Verifies if an interceptor that the return type is void doesn't compile.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec04

public void testWrongSpec04()
                     throws java.lang.Exception
Verifies if an interceptor class with a static method modifier compile.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec05

public void testWrongSpec05()
                     throws java.lang.Exception
Verifies if an interceptor class with a final method modifier compile.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec06

public void testWrongSpec06()
                     throws java.lang.Exception
This method should cause an exception. Verifies if an

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec07

public void testWrongSpec07()
                     throws java.lang.Exception
Verifies if a bean class with a static interceptor method compiles.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-

testWrongSpec08

public void testWrongSpec08()
                     throws java.lang.Exception
Verifies if a bean class with a final interceptor method compiles.

Throws:
java.lang.Exception - if there is an enhancer exception.
Input:
-
Output:
-