org.objectweb.easybeans.tests.enhancer.interceptors.business
Class BusinessInterceptorsTestCase

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

public class BusinessInterceptorsTestCase
extends java.lang.Object

Call bean and see if interceptor has not broken methods calls.

Author:
Florent Benoit

Field Summary
private static boolean enhancingDone
          Enhancing has been done ?
private  StatelessBean statelessBean
          Bean tested.
 
Constructor Summary
BusinessInterceptorsTestCase()
           
 
Method Summary
protected  void setUp()
          Setup for test case.
 void testBoolean()
          Tests the boolean.
 void testByte()
          Tests the bytes.
 void testChar()
          Tests the chars.
 void testCounter()
          Test that aroundInvoke in the bean has increased a counter.
 void testDouble()
          Tests the double.
 void testExcludedInterceptorsMethod()
          Test that no interceptors are called on this method.
 void testFloat()
          Tests the float.
 void testInt()
          Tests the int.
 void testInterceptorThrowException()
          Test that interceptor throw an exception.
 void testLong()
          Tests the long.
 void testMix()
          Mix of primitive / object.
 void testMultipleException3()
          Test user defined exceptions and exceptions.
 void testOtherClassInterceptorCounter()
          Test that interceptor has increased a counter.
 void testShort()
          Tests the short.
 void testSingleMethodIntercepted()
          Test that the interceptor is only called on a stateless bean and on singleMethodIntercepted method.
 void testUserDefinedException()
          Test a user defined exception.
 void testUserDefinedException2()
          Test a user defined exception.
 void testValueDoubledByInterceptor()
          Test that value is increased by interceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statelessBean

private StatelessBean statelessBean
Bean tested.


enhancingDone

private static boolean enhancingDone
Enhancing has been done ?

Constructor Detail

BusinessInterceptorsTestCase

public BusinessInterceptorsTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Setup for test case.

Throws:
java.lang.Exception - if super method fails

testBoolean

public void testBoolean()
Tests the boolean.


testByte

public void testByte()
Tests the bytes.


testChar

public void testChar()
Tests the chars.


testDouble

public void testDouble()
Tests the double.


testFloat

public void testFloat()
Tests the float.


testInt

public void testInt()
Tests the int.


testLong

public void testLong()
Tests the long.


testShort

public void testShort()
Tests the short.


testMix

public void testMix()
Mix of primitive / object.


testUserDefinedException

public void testUserDefinedException()
Test a user defined exception.


testUserDefinedException2

public void testUserDefinedException2()
Test a user defined exception.


testMultipleException3

public void testMultipleException3()
Test user defined exceptions and exceptions.


testCounter

public void testCounter()
Test that aroundInvoke in the bean has increased a counter.


testOtherClassInterceptorCounter

public void testOtherClassInterceptorCounter()
Test that interceptor has increased a counter.


testInterceptorThrowException

public void testInterceptorThrowException()
Test that interceptor throw an exception.


testValueDoubledByInterceptor

public void testValueDoubledByInterceptor()
Test that value is increased by interceptor.


testSingleMethodIntercepted

public void testSingleMethodIntercepted()
Test that the interceptor is only called on a stateless bean and on singleMethodIntercepted method.


testExcludedInterceptorsMethod

public void testExcludedInterceptorsMethod()
Test that no interceptors are called on this method.