org.jboss.cdi.tck.tests.implementation.disposal.method.definition
Class DisposalMethodDefinitionTest

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.disposal.method.definition.DisposalMethodDefinitionTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="cdi",
             version="20091101")
public class DisposalMethodDefinitionTest
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
DisposalMethodDefinitionTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testBindingTypesAppliedToDisposalMethodParameters()
           
 void testDisposalMethodCalledForProducerField()
          Tests that a disposal method can be bound to a product of a producer field.
 void testDisposalMethodForMultipleProducerMethods()
           
 void testDisposalMethodOnNonBean()
           
 void testDisposalMethodParametersGetInjected()
          In addition to the disposed parameter, a disposal method may declare additional parameters, which may also specify bindings.
 
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

DisposalMethodDefinitionTest

public DisposalMethodDefinitionTest()
Method Detail

createTestArchive

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

testBindingTypesAppliedToDisposalMethodParameters

@SpecAssertions(value={@SpecAssertion(section="2.3.5",id="c"),@SpecAssertion(section="3.5",id="b"),@SpecAssertion(section="3.5",id="c"),@SpecAssertion(section="3.5",id="e"),@SpecAssertion(section="3.5.1",id="ba"),@SpecAssertion(section="3.5.2",id="a"),@SpecAssertion(section="3.5.2",id="b0"),@SpecAssertion(section="3.5.3",id="aa"),@SpecAssertion(section="5.5.4",id="b")})
public void testBindingTypesAppliedToDisposalMethodParameters()
                                                       throws Exception
Throws:
Exception

testDisposalMethodOnNonBean

@SpecAssertions(value={@SpecAssertion(section="3.5",id="aa"),@SpecAssertion(section="3.5.1",id="ba")})
public void testDisposalMethodOnNonBean()
                                 throws Exception
Throws:
Exception

testDisposalMethodParametersGetInjected

@SpecAssertions(value={@SpecAssertion(section="3.5.2",id="h"),@SpecAssertion(section="3.11",id="a"),@SpecAssertion(section="5.5.4",id="e")})
public void testDisposalMethodParametersGetInjected()
                                             throws Exception
In addition to the disposed parameter, a disposal method may declare additional parameters, which may also specify bindings. The container calls Manager.getInstanceToInject() to determine a value for each parameter of a disposal method and calls the disposal method with those parameter values

Throws:
Exception

testDisposalMethodForMultipleProducerMethods

@SpecAssertion(section="3.5.1",
               id="da")
public void testDisposalMethodForMultipleProducerMethods()
                                                  throws Exception
Throws:
Exception

testDisposalMethodCalledForProducerField

@SpecAssertions(value={@SpecAssertion(section="3.5.3",id="ab"),@SpecAssertion(section="7.3.5",id="o")})
public void testDisposalMethodCalledForProducerField()
                                              throws Exception
Tests that a disposal method can be bound to a product of a producer field. CDI-145

Throws:
Exception


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