Class BeanManagerTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.jboss.cdi.tck.AbstractTest
-
- org.jboss.cdi.tck.tests.full.extensions.beanManager.BeanManagerTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
@SpecVersion(spec="cdi", version="2.0") public class BeanManagerTest extends AbstractTestMostly tests for extensions specified in chapter 11 of the specification and not already tested elsewhere. Functionality that is also present inBeanContainershould be tested inBeanContainerTest- Author:
- David Allen, Martin Kouba
-
-
Field Summary
-
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
-
-
Constructor Summary
Constructors Constructor Description BeanManagerTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchivecreateTestArchive()voidtestDetermineScopeType()voidtestGetELResolver()voidtestGetExtension()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.voidtestGetMetaAnnotationsForInterceptorBindingType()voidtestGetMetaAnnotationsForStereotype()voidtestObtainingAnnotatedType()voidtestObtainingInjectionTarget()voidtestObtainingInjectionTargetWithDefinitionError()voidtestValidateThrowsException()-
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentBeanContainer, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
-
-
-
-
Method Detail
-
createTestArchive
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
-
testValidateThrowsException
@SpecAssertion(section="bm_validate_ip", id="a") public void testValidateThrowsException()
-
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(@SpecAssertion(section="bm_obtain_annotatedtype",id="a")) public void testObtainingAnnotatedType()
-
testObtainingInjectionTarget
@SpecAssertion(section="bm_obtain_injectiontarget", id="aa") public void testObtainingInjectionTarget()
-
testObtainingInjectionTargetWithDefinitionError
@SpecAssertion(section="bm_obtain_injectiontarget", id="ab") public void testObtainingInjectionTargetWithDefinitionError()
-
testGetExtension
@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.
-
-