org.jboss.cdi.tck.tests.definition.bean
Class BeanDefinitionTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
org.jboss.cdi.tck.tests.definition.bean.BeanDefinitionTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="cdi",
version="20091101")
public class BeanDefinitionTest- extends AbstractTest
This test class should be used for common assertions about managed beans (not session beans)
- Author:
- Pete Muir, Martin Kouba
| 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 |
BeanDefinitionTest
public BeanDefinitionTest()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
testBeanTypesNonEmpty
@SpecAssertion(section="2",
id="a")
public void testBeanTypesNonEmpty()
testQualifiersNonEmpty
@SpecAssertions(value={@SpecAssertion(section="2",id="b"),@SpecAssertion(section="11.1",id="ba")})
public void testQualifiersNonEmpty()
testHasScopeType
@SpecAssertions(value={@SpecAssertion(section="2",id="c"),@SpecAssertion(section="2.4",id="a"),@SpecAssertion(section="3.1.3",id="ba"),@SpecAssertion(section="11.1",id="ba")})
public void testHasScopeType()
testIsNullable
@SpecAssertions(value={@SpecAssertion(section="2.2.1",id="j"),@SpecAssertion(section="5.2.5",id="c"),@SpecAssertion(section="11.1",id="bd")})
public void testIsNullable()
throws Exception
- Throws:
Exception
testBeanTypes
@SpecAssertions(value={@SpecAssertion(section="3.1.2",id="a"),@SpecAssertion(section="2.2",id="a"),@SpecAssertion(section="2.2.1",id="a"),@SpecAssertion(section="2.2.1",id="d"),@SpecAssertion(section="2.2.1",id="e"),@SpecAssertion(section="2.2",id="l"),@SpecAssertion(section="11.1",id="ba")})
public void testBeanTypes()
testBeanClientCanCastBeanInstanceToAnyBeanType
@SpecAssertion(section="2.2.3",
id="a")
public void testBeanClientCanCastBeanInstanceToAnyBeanType()
testAbstractApiType
@SpecAssertion(section="2.2.1",
id="c")
public void testAbstractApiType()
testFinalApiType
@SpecAssertion(section="2.2.1",
id="d")
public void testFinalApiType()
testMultipleStereotypes
@SpecAssertions(value={@SpecAssertion(section="3.1.3",id="bd"),@SpecAssertion(section="11.1",id="ba")})
public void testMultipleStereotypes()
testBeanExtendsAnotherBean
@SpecAssertion(section="3.1.3",
id="c")
public void testBeanExtendsAnotherBean()
testBeanClassOnSimpleBean
@SpecAssertion(section="11.1",
id="bb")
public void testBeanClassOnSimpleBean()
Copyright © 2008-2012 Seam Framework. All Rights Reserved.