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

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

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


Constructor Summary
DisposalMethodDefinitionTest()
           
 
Method Summary
 void testBindingTypesAppliedToDisposalMethodParameters()
           
 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.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

DisposalMethodDefinitionTest

public DisposalMethodDefinitionTest()
Method Detail

testBindingTypesAppliedToDisposalMethodParameters

@SpecAssertions(value={@SpecAssertion(section="2.3.5",id="c"),@SpecAssertion(section="3.3.4",id="b"),@SpecAssertion(section="3.3.4",id="c"),@SpecAssertion(section="3.3.4",id="e"),@SpecAssertion(section="3.3.5",id="ba"),@SpecAssertion(section="3.3.6",id="a"),@SpecAssertion(section="3.3.6",id="b0"),@SpecAssertion(section="3.3.7",id="aa"),@SpecAssertion(section="5.5.4",id="b")})
public void testBindingTypesAppliedToDisposalMethodParameters()
                                                       throws Exception
Throws:
Exception

testDisposalMethodOnNonBean

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

testDisposalMethodParametersGetInjected

@SpecAssertions(value={@SpecAssertion(section="3.3.6",id="h"),@SpecAssertion(section="3.10",id="a")})
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


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