org.jboss.cdi.tck.tests.implementation.producer.method.definition
Class ProducerMethodDefinitionTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
org.jboss.cdi.tck.tests.implementation.producer.method.definition.ProducerMethodDefinitionTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="cdi",
version="20091101")
public class ProducerMethodDefinitionTest- extends AbstractTest
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
ARQUILLIAN_DATA_PROVIDER |
| 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 |
ProducerMethodDefinitionTest
public ProducerMethodDefinitionTest()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
testStaticMethod
@SpecAssertions(value={@SpecAssertion(section="3.3",id="b"),@SpecAssertion(section="5.5.4",id="a")})
public void testStaticMethod()
throws Exception
- Throws:
Exception
testProducerOnNonBean
@SpecAssertions(value=@SpecAssertion(section="3.3",id="aa"))
public void testProducerOnNonBean()
throws Exception
- Throws:
Exception
testStaticDisposerMethod
@SpecAssertions(value=@SpecAssertion(section="3.5",id="b"))
public void testStaticDisposerMethod()
throws Exception
- Throws:
Exception
testParameterizedReturnType
@SpecAssertion(section="3.3",
id="ga")
public void testParameterizedReturnType()
throws Exception
- Throws:
Exception
testDefaultBindingType
@SpecAssertions(value={@SpecAssertion(section="3.3",id="c"),@SpecAssertion(section="3.3.2",id="a"),@SpecAssertion(section="2.3.1",id="a0"),@SpecAssertion(section="2.3.1",id="aa")})
public void testDefaultBindingType()
throws Exception
- Throws:
Exception
testApiTypeForClassReturn
@SpecAssertions(value={@SpecAssertion(section="3.3.1",id="c"),@SpecAssertion(section="2.2",id="l")})
public void testApiTypeForClassReturn()
throws Exception
- Throws:
Exception
testApiTypeForInterfaceReturn
@SpecAssertion(section="3.3.1",
id="a")
public void testApiTypeForInterfaceReturn()
throws Exception
- Throws:
Exception
testApiTypeForPrimitiveReturn
@SpecAssertion(section="3.3.1",
id="ba")
public void testApiTypeForPrimitiveReturn()
throws Exception
- Throws:
Exception
testApiTypeForArrayTypeReturn
@SpecAssertions(value={@SpecAssertion(section="3.3.1",id="bb"),@SpecAssertion(section="2.2.1",id="i")})
public void testApiTypeForArrayTypeReturn()
throws Exception
- Throws:
Exception
testBindingType
@SpecAssertions(value={@SpecAssertion(section="3.3.2",id="be"),@SpecAssertion(section="3.3",id="k"),@SpecAssertion(section="2.3.3",id="b")})
public void testBindingType()
throws Exception
- Throws:
Exception
testScopeType
@SpecAssertions(value={@SpecAssertion(section="3.3.2",id="ba"),@SpecAssertion(section="3.3",id="k")})
public void testScopeType()
throws Exception
- Throws:
Exception
testNamedMethod
@SpecAssertions(value={@SpecAssertion(section="3.3.2",id="bb"),@SpecAssertion(section="2.5.1",id="b")})
public void testNamedMethod()
throws Exception
- Throws:
Exception
testDefaultNamedMethod
@SpecAssertions(value={@SpecAssertion(section="3.3.2",id="bb"),@SpecAssertion(section="2.5.2",id="b"),@SpecAssertion(section="2.5.2",id="fb"),@SpecAssertion(section="2.5.1",id="d")})
public void testDefaultNamedMethod()
throws Exception
- Throws:
Exception
testStereotypeSpecifiesScope
@SpecAssertions(value={@SpecAssertion(section="2.7.2",id="b"),@SpecAssertion(section="3.3.2",id="ba"),@SpecAssertion(section="2.4.4",id="c"),@SpecAssertion(section="3.3.2",id="bd")})
public void testStereotypeSpecifiesScope()
throws Exception
- Throws:
Exception
testNonStaticProducerMethodNotInheritedBySpecializingSubclass
@SpecAssertions(value={@SpecAssertion(section="4.2",id="da"),@SpecAssertion(section="4.3",id="cb")})
public void testNonStaticProducerMethodNotInheritedBySpecializingSubclass()
testNonStaticProducerMethodNotInherited
@SpecAssertions(value={@SpecAssertion(section="4.2",id="da"),@SpecAssertion(section="4.2",id="dg")})
public void testNonStaticProducerMethodNotInherited()
testBindingTypesAppliedToProducerMethodParameters
@SpecAssertions(value={@SpecAssertion(section="2.3.5",id="a"),@SpecAssertion(section="3.3.2",id="i"),@SpecAssertion(section="3.3.2",id="h"),@SpecAssertion(section="5.5.4",id="e")})
public void testBindingTypesAppliedToProducerMethodParameters()
- Note on the "3.3.2 h" assertion related to CDI section "3.3.2. Declaring a producer method" statement
"A producer method may have any number of parameters." JVM spec allows max 255 params. This test works with two producer
method params -
SpiderProducer.producesDeadliestTarantula(Tarantula, Tarantula). To fulfill the assertion
requirements we would need to test 255 producer methods with 1 to 255 parameter injection points.
testDependentProducerReturnsNullValue
@SpecAssertion(section="3.3",
id="e")
public void testDependentProducerReturnsNullValue()
testNonDependentProducerReturnsNullValue
@SpecAssertion(section="3.3",
id="f")
public void testNonDependentProducerReturnsNullValue()
testTypeVariableReturnType
@SpecAssertion(section="3.3",
id="iaa")
public void testTypeVariableReturnType()
Copyright © 2008-2012 Seam Framework. All Rights Reserved.