org.jboss.jsr299.tck.tests.definition.bean
Class BeanDefinitionTest
java.lang.Object
org.jboss.testharness.AbstractTest
org.jboss.jsr299.tck.AbstractJSR299Test
org.jboss.jsr299.tck.tests.definition.bean.BeanDefinitionTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@Artifact
@SpecVersion(spec="cdi",
version="20091101")
public class BeanDefinitionTest
- extends AbstractJSR299Test
This test class should be used for common assertions about managed beans (not session beans)
- Author:
- Pete Muir
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 |
BeanDefinitionTest
public BeanDefinitionTest()
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.4",id="ba"),@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.