org.jboss.cdi.tck.tests.extensions.beanManager
Class BeanManagerTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
org.jboss.cdi.tck.tests.extensions.beanManager.BeanManagerTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="cdi",
version="20091101")
public class BeanManagerTest- extends AbstractTest
Mostly tests for extensions specified in chapter 11 of the specification and not already tested elsewhere.
TODO add tests for custom scope, qualifier, stereotype, interceptor added via extension
- Author:
- David Allen, 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, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, 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 |
BeanManagerTest
public BeanManagerTest()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
testAmbiguousDependencyResolved
@SpecAssertion(section="bm_resolve_ambiguous_dep",
id="a")
public void testAmbiguousDependencyResolved()
testAmbiguousDependencyNotResolved
@SpecAssertion(section="bm_resolve_ambiguous_dep",
id="b")
public void testAmbiguousDependencyNotResolved()
testValidateThrowsException
@SpecAssertion(section="bm_validate_ip",
id="a")
public void testValidateThrowsException()
testDetermineQualifierType
@SpecAssertion(section="bm_determining_annotation",
id="aa")
public void testDetermineQualifierType()
testDetermineScope
@SpecAssertion(section="bm_determining_annotation",
id="ab")
public void testDetermineScope()
testDetermineStereotype
@SpecAssertion(section="bm_determining_annotation",
id="ac")
public void testDetermineStereotype()
testDetermineInterceptorBindingType
@SpecAssertion(section="bm_determining_annotation",
id="ad")
public void testDetermineInterceptorBindingType()
testGetMetaAnnotationsForStereotype
@SpecAssertion(section="bm_determining_annotation",
id="ae")
public void testGetMetaAnnotationsForStereotype()
testGetMetaAnnotationsForInterceptorBindingType
@SpecAssertion(section="bm_determining_annotation",
id="af")
public void testGetMetaAnnotationsForInterceptorBindingType()
testDetermineScopeType
@SpecAssertion(section="bm_determining_annotation",
id="ag")
public void testDetermineScopeType()
testGetELResolver
@SpecAssertion(section="bm_obtain_elresolver",
id="a")
public void testGetELResolver()
testObtainingAnnotatedType
@SpecAssertions(value=@SpecAssertion(section="bm_obtain_annotatedtype",id="a"))
public void testObtainingAnnotatedType()
testObtainingWrappedAnnotatedType
public void testObtainingWrappedAnnotatedType()
testObtainingInjectionTarget
@SpecAssertion(section="bm_obtain_injectiontarget",
id="aa")
public void testObtainingInjectionTarget()
testObtainingInjectionTargetWithDefinitionError
@SpecAssertion(section="bm_obtain_injectiontarget",
id="ab")
public void testObtainingInjectionTargetWithDefinitionError()
testGetExtension
@SpecAssertions(value={@SpecAssertion(section="bm_obtain_extension",id="a"),@SpecAssertion(section="bm_obtain_extension",id="b")})
public void testGetExtension()
- The method BeanManager.getExtension() returns the container's instance of an Extension class declared in
META-INF/services, or throws an IllegalArgumentException if the container has no instance of the given class.
testResolveWithNull
@SpecAssertion(section="bm_resolve_ambiguous_dep",
id="c")
public void testResolveWithNull()
testResolveWithEmptySet
@SpecAssertion(section="bm_resolve_ambiguous_dep",
id="d")
public void testResolveWithEmptySet()
Copyright © 2008-2013 Seam Framework. All Rights Reserved.