org.objectweb.easybeans.tests.enhancer.interceptors.lifecycle
Class LifeCycleInterceptorsTestCase

java.lang.Object
  extended by org.objectweb.easybeans.tests.enhancer.interceptors.lifecycle.LifeCycleInterceptorsTestCase

public class LifeCycleInterceptorsTestCase
extends java.lang.Object

Call bean and see if callbacks are working.

Author:
Florent Benoit

Field Summary
private static boolean enhancingDone
          Enhancing has been done ?
private  StatefulBean statefulBean
          Bean (stateful) tested.
private  StatelessBean statelessBean
          Bean (stateless) tested.
private  StatelessBean2 statelessBean2
          Bean (stateless2) tested.
 
Constructor Summary
LifeCycleInterceptorsTestCase()
           
 
Method Summary
private  org.objectweb.easybeans.api.bean.lifecycle.EasyBeansSFSBLifeCycle getSFSBLifeCycle()
           
private  org.objectweb.easybeans.api.bean.lifecycle.EasyBeansSLSBLifeCycle getSLSB2LifeCycle()
           
private  org.objectweb.easybeans.api.bean.lifecycle.EasyBeansSLSBLifeCycle getSLSBLifeCycle()
           
protected  void setUp()
          Setup for test case.
 void testStatefulBeanCallbacks()
          Test the stateful bean callbacks.
 void testStatefulPostActivate()
          Test the PostActivate on stateful bean.
 void testStatefulPostConstruct()
          Test the postConstruct on stateful bean.
 void testStatefulPreDestroy()
          Test the preDestroy on stateful bean.
 void testStatefulPrePassivate()
          Test the prePassivate on stateful bean.
 void testStateless2PostConstruct()
          Test the postConstruct on stateless bean.
 void testStateless2PreDestroy()
          Test the preDestroy on stateless bean.
 void testStatelessBeanCallbacks()
          Test the stateless bean callbacks.
 void testStatelessPostConstruct()
          Test the postConstruct on stateless bean.
 void testStatelessPreDestroy()
          Test the preDestroy on stateless bean.
 
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 (stateless) tested.


statelessBean2

private StatelessBean2 statelessBean2
Bean (stateless2) tested.


statefulBean

private StatefulBean statefulBean
Bean (stateful) tested.


enhancingDone

private static boolean enhancingDone
Enhancing has been done ?

Constructor Detail

LifeCycleInterceptorsTestCase

public LifeCycleInterceptorsTestCase()
Method Detail

setUp

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

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

getSLSBLifeCycle

private org.objectweb.easybeans.api.bean.lifecycle.EasyBeansSLSBLifeCycle getSLSBLifeCycle()
Returns:
a lifecycle object for the current stateless bean

getSLSB2LifeCycle

private org.objectweb.easybeans.api.bean.lifecycle.EasyBeansSLSBLifeCycle getSLSB2LifeCycle()
Returns:
a lifecycle object for the current stateless2 bean

getSFSBLifeCycle

private org.objectweb.easybeans.api.bean.lifecycle.EasyBeansSFSBLifeCycle getSFSBLifeCycle()
Returns:
a lifecycle object for the current stateful bean

testStatelessBeanCallbacks

public void testStatelessBeanCallbacks()
Test the stateless bean callbacks.


testStatelessPostConstruct

public void testStatelessPostConstruct()
Test the postConstruct on stateless bean.


testStatelessPreDestroy

public void testStatelessPreDestroy()
Test the preDestroy on stateless bean.


testStateless2PostConstruct

public void testStateless2PostConstruct()
Test the postConstruct on stateless bean.


testStateless2PreDestroy

public void testStateless2PreDestroy()
Test the preDestroy on stateless bean.


testStatefulBeanCallbacks

public void testStatefulBeanCallbacks()
Test the stateful bean callbacks.


testStatefulPostConstruct

public void testStatefulPostConstruct()
Test the postConstruct on stateful bean.


testStatefulPreDestroy

public void testStatefulPreDestroy()
Test the preDestroy on stateful bean.


testStatefulPrePassivate

public void testStatefulPrePassivate()
Test the prePassivate on stateful bean.


testStatefulPostActivate

public void testStatefulPostActivate()
Test the PostActivate on stateful bean.