org.jboss.jsr299.tck.tests.implementation.producer.method.lifecycle
Class ProducerMethodLifecycleTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.jboss.jsr299.tck.AbstractJSR299Test
          extended by org.jboss.jsr299.tck.tests.implementation.producer.method.lifecycle.ProducerMethodLifecycleTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@Artifact
@BeansXml(value="beans.xml")
@SpecVersion(spec="cdi",
             version="20091101")
public class ProducerMethodLifecycleTest
extends AbstractJSR299Test

NOTE May be able to get rid of some of the binding types if the producer method precedence question is resolved


Constructor Summary
ProducerMethodLifecycleTest()
           
 
Method Summary
 void testCreateFailsIfProducerReturnsNullAndNotDependent()
           
 void testCreateRethrowsUncheckedException()
           
 void testCreateReturnsNullIfProducerDoesAndDependent()
           
 void testCreateWrapsCheckedExceptionAndRethrows()
           
 void testProducerMethodBeanCreate()
           
 void testProducerMethodBeanDestroy()
           
 void testProducerMethodFromMostSpecializedBeanUsed()
           
 void testProducerMethodInvokedOnCreate()
           
 void testWhenApplicationInvokesProducerMethodParametersAreNotInjected()
           
 
Methods inherited from class org.jboss.jsr299.tck.AbstractJSR299Test
annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, handleDeploymentFailure, rawTypeSetMatches, serialize, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducerMethodLifecycleTest

public ProducerMethodLifecycleTest()
Method Detail

testProducerMethodBeanCreate

@SpecAssertion(section="7.3.4",
               id="ea")
public void testProducerMethodBeanCreate()

testProducerMethodInvokedOnCreate

@SpecAssertions(value=@SpecAssertion(section="7.3.4",id="ea"))
public void testProducerMethodInvokedOnCreate()

testWhenApplicationInvokesProducerMethodParametersAreNotInjected

@SpecAssertion(section="3.3",
               id="j")
public void testWhenApplicationInvokesProducerMethodParametersAreNotInjected()

testProducerMethodFromMostSpecializedBeanUsed

@SpecAssertions(value={@SpecAssertion(section="5.5.4",id="c"),@SpecAssertion(section="4.3",id="cb")})
public void testProducerMethodFromMostSpecializedBeanUsed()

testCreateReturnsNullIfProducerDoesAndDependent

@SpecAssertions(value=@SpecAssertion(section="7.3.4",id="k"))
public void testCreateReturnsNullIfProducerDoesAndDependent()

testCreateFailsIfProducerReturnsNullAndNotDependent

@SpecAssertions(value=@SpecAssertion(section="7.3.4",id="l"))
public void testCreateFailsIfProducerReturnsNullAndNotDependent()

testProducerMethodBeanDestroy

@SpecAssertions(value={@SpecAssertion(section="7.3.4",id="ma"),@SpecAssertion(section="7.3.4",id="r")})
public void testProducerMethodBeanDestroy()

testCreateRethrowsUncheckedException

@SpecAssertions(value=@SpecAssertion(section="6.1",id="a0"))
public void testCreateRethrowsUncheckedException()

testCreateWrapsCheckedExceptionAndRethrows

@SpecAssertions(value=@SpecAssertion(section="6.1",id="a0"))
public void testCreateWrapsCheckedExceptionAndRethrows()


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