org.jboss.cdi.tck.tests.implementation.simple.lifecycle
Class SimpleBeanLifecycleTest

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.simple.lifecycle.SimpleBeanLifecycleTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

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


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
SimpleBeanLifecycleTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testBeanCreateInjectsDependenciesAndInvokesInitializerToInstantiateInstance()
           
 void testContextCreatesNewInstanceForInjection()
           
 void testContextualDestroyCatchesException()
           
 void testContextualDestroyDisposesWhenNecessary()
           
 void testCreateInjectsFieldsDeclaredInJava()
           
 void testCreateReturnsSameBeanPushed()
           
 void testCreationExceptionWrapsCheckedExceptionThrownFromCreate()
           
 void testDependentsDestroyedAfterPreDestroy()
           
 void testIndirectSubClassInheritsPostConstructOnSuperclass()
           
 void testIndirectSubClassInheritsPreDestroyOnSuperclass()
           
 void testInjectionOfParametersIntoBeanConstructor()
           
 void testManagedBean()
           
 void testPostConstructPreDestroy()
           
 void testQualifierTypeAnnotatedConstructor()
           
 void testSerializeRequestScoped()
           
 void testSerializeSessionScoped()
           
 void testSpecializedBeanExtendsManagedBean()
           
 void testSubClassDoesNotInheritPostConstructOnSuperclassBlockedByIntermediateClass()
           
 void testSubClassDoesNotInheritPreDestroyConstructOnSuperclassBlockedByIntermediateClass()
           
 void testSubClassInheritsPostConstructOnSuperclass()
           
 void testSubClassInheritsPreDestroyOnSuperclass()
           
 void testUncheckedExceptionThrownFromCreateNotWrapped()
           
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, isThrowablePresent, 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

SimpleBeanLifecycleTest

public SimpleBeanLifecycleTest()
Method Detail

createTestArchive

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

testInjectionOfParametersIntoBeanConstructor

@SpecAssertions(value={@SpecAssertion(section="3.8.1",id="f"),@SpecAssertion(section="3.8.1",id="g"),@SpecAssertion(section="2.3.5",id="d")})
public void testInjectionOfParametersIntoBeanConstructor()

testSerializeRequestScoped

@SpecAssertions(value=@SpecAssertion(section="6.6.2",id="b"))
public void testSerializeRequestScoped()
                                throws Exception
Throws:
Exception

testSerializeSessionScoped

@SpecAssertions(value=@SpecAssertion(section="6.6.2",id="b"))
public void testSerializeSessionScoped()
                                throws Exception
Throws:
Exception

testQualifierTypeAnnotatedConstructor

@SpecAssertion(section="3.8.1",
               id="g")
public void testQualifierTypeAnnotatedConstructor()

testSpecializedBeanExtendsManagedBean

@SpecAssertions(value=@SpecAssertion(section="3.1.4",id="ac"))
public void testSpecializedBeanExtendsManagedBean()

testCreateReturnsSameBeanPushed

@SpecAssertions(value={@SpecAssertion(section="6.1.1",id="d"),@SpecAssertion(section="6.1.1",id="g")})
public void testCreateReturnsSameBeanPushed()

testBeanCreateInjectsDependenciesAndInvokesInitializerToInstantiateInstance

@SpecAssertions(value=@SpecAssertion(section="7.3.1",id="aa"))
public void testBeanCreateInjectsDependenciesAndInvokesInitializerToInstantiateInstance()

testManagedBean

@SpecAssertions(value={@SpecAssertion(section="2",id="g"),@SpecAssertion(section="2.2.1",id="b"),@SpecAssertion(section="2.2.1",id="k"),@SpecAssertion(section="12.2",id="da")})
public void testManagedBean()

testCreateInjectsFieldsDeclaredInJava

@SpecAssertions(value={@SpecAssertion(section="7.3.1",id="aa"),@SpecAssertion(section="3.8.1",id="aa"),@SpecAssertion(section="2.3.4",id="a"),@SpecAssertion(section="3.9",id="a"),@SpecAssertion(section="3.9.1",id="aa"),@SpecAssertion(section="12.1",id="bca")})
public void testCreateInjectsFieldsDeclaredInJava()

testContextCreatesNewInstanceForInjection

@SpecAssertions(value=@SpecAssertion(section="6.2",id="l"))
public void testContextCreatesNewInstanceForInjection()

testPostConstructPreDestroy

@SpecAssertions(value={@SpecAssertion(section="7.3.1",id="aa"),@SpecAssertion(section="7.3.1",id="ba")})
public void testPostConstructPreDestroy()

testContextualDestroyDisposesWhenNecessary

@SpecAssertions(value={@SpecAssertion(section="6.5.3",id="a0"),@SpecAssertion(section="7.3.1",id="ba"),@SpecAssertion(section="6.5.3",id="c")})
public void testContextualDestroyDisposesWhenNecessary()

testContextualDestroyCatchesException

@SpecAssertions(value=@SpecAssertion(section="6.1",id="a1"))
public void testContextualDestroyCatchesException()

testDependentsDestroyedAfterPreDestroy

@SpecAssertions(value=@SpecAssertion(section="5.5.3",id="a"))
public void testDependentsDestroyedAfterPreDestroy()

testSubClassInheritsPostConstructOnSuperclass

@SpecAssertion(section="4.2",
               id="baa")
public void testSubClassInheritsPostConstructOnSuperclass()

testIndirectSubClassInheritsPostConstructOnSuperclass

@SpecAssertion(section="4.2",
               id="bac")
public void testIndirectSubClassInheritsPostConstructOnSuperclass()

testSubClassInheritsPreDestroyOnSuperclass

@SpecAssertion(section="4.2",
               id="bba")
public void testSubClassInheritsPreDestroyOnSuperclass()

testIndirectSubClassInheritsPreDestroyOnSuperclass

@SpecAssertion(section="4.2",
               id="bbc")
public void testIndirectSubClassInheritsPreDestroyOnSuperclass()

testSubClassDoesNotInheritPostConstructOnSuperclassBlockedByIntermediateClass

@SpecAssertion(section="4.2",
               id="baa")
public void testSubClassDoesNotInheritPostConstructOnSuperclassBlockedByIntermediateClass()

testSubClassDoesNotInheritPreDestroyConstructOnSuperclassBlockedByIntermediateClass

@SpecAssertion(section="4.2",
               id="bba")
public void testSubClassDoesNotInheritPreDestroyConstructOnSuperclassBlockedByIntermediateClass()

testCreationExceptionWrapsCheckedExceptionThrownFromCreate

@SpecAssertion(section="6.1",
               id="a0")
public void testCreationExceptionWrapsCheckedExceptionThrownFromCreate()

testUncheckedExceptionThrownFromCreateNotWrapped

@SpecAssertion(section="6.1",
               id="a0")
public void testUncheckedExceptionThrownFromCreateNotWrapped()


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