org.jboss.cdi.tck.tests.implementation.enterprise.lifecycle
Class EnterpriseBeanLifecycleTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="cdi",
             version="20091101")
public class EnterpriseBeanLifecycleTest
extends AbstractTest

Sections 6.5. Lifecycle of stateful session beans 6.6. Lifecycle of stateless session and singleton beans 6.11. Lifecycle of EJBs Mostly overlapping with other tests...

Author:
Nicklas Karlsson, David Allen, Martin Kouba

Field Summary
 
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
EnterpriseBeanLifecycleTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testCreateSFSB()
           
 void testCreateSLSB()
           
 void testDependentObjectsDestroyed()
           
 void testDestroyRemovesSFSB()
           
 void testDirectSubClassInheritsPostConstructOnSuperclass()
           
 void testIndirectSubClassInheritsPostConstructOnSuperclass()
           
 void testIndirectSubClassInheritsPreDestroyOnSuperclass()
           
 void testInitializerMethodsCalledWithCurrentParameterValues()
           
 void testRemovedEjbIgnored()
           
 void testSerializeSFSB()
           
 void testSubClassInheritsPreDestroyOnSuperclass()
           
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterpriseBeanLifecycleTest

public EnterpriseBeanLifecycleTest()
Method Detail

createTestArchive

@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()

testCreateSFSB

@SpecAssertions(value={@SpecAssertion(section="stateful_lifecycle",id="bb"),@SpecAssertion(section="contextual_reference",id="b"),@SpecAssertion(section="bean_archive",id="ja")})
public void testCreateSFSB()
                    throws Exception
Throws:
Exception

testSerializeSFSB

@SpecAssertions(value=@SpecAssertion(section="passivation_capable_dependency",id="ac"))
public void testSerializeSFSB()
                       throws Exception
Throws:
Exception

testDestroyRemovesSFSB

@SpecAssertions(value={@SpecAssertion(section="stateful_lifecycle",id="bc"),@SpecAssertion(section="stateless_lifecycle",id="c")})
public void testDestroyRemovesSFSB()
                            throws Exception
Throws:
Exception

testRemovedEjbIgnored

@SpecAssertions(value={@SpecAssertion(section="stateful_lifecycle",id="bc"),@SpecAssertion(section="session_bean_ejb_remove_method",id="dba")})
public void testRemovedEjbIgnored()

testCreateSLSB

@SpecAssertions(value=@SpecAssertion(section="stateless_lifecycle",id="b"))
public void testCreateSLSB()

testInitializerMethodsCalledWithCurrentParameterValues

@SpecAssertion(section="declaring_initializer",
               id="f")
public void testInitializerMethodsCalledWithCurrentParameterValues()

testDependentObjectsDestroyed

@SpecAssertion(section="dependent_objects_destruction",
               id="a")
public void testDependentObjectsDestroyed()

testDirectSubClassInheritsPostConstructOnSuperclass

@SpecAssertion(section="member_level_inheritance",
               id="bab")
public void testDirectSubClassInheritsPostConstructOnSuperclass()
                                                         throws Exception
Throws:
Exception

testIndirectSubClassInheritsPostConstructOnSuperclass

@SpecAssertion(section="member_level_inheritance",
               id="bad")
public void testIndirectSubClassInheritsPostConstructOnSuperclass()
                                                           throws Exception
Throws:
Exception

testSubClassInheritsPreDestroyOnSuperclass

@SpecAssertion(section="member_level_inheritance",
               id="bbb")
public void testSubClassInheritsPreDestroyOnSuperclass()
                                                throws Exception
Throws:
Exception

testIndirectSubClassInheritsPreDestroyOnSuperclass

@SpecAssertion(section="member_level_inheritance",
               id="bbd")
public void testIndirectSubClassInheritsPreDestroyOnSuperclass()
                                                        throws Exception
Throws:
Exception


Copyright © 2008-2013 Seam Framework. All Rights Reserved.