Class BeanManagerTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class BeanManagerTest
    extends AbstractTest
    Mostly tests for extensions specified in chapter 11 of the specification and not already tested elsewhere. Functionality that is also present in BeanContainer should be tested in BeanContainerTest
    Author:
    David Allen, Martin Kouba
    • Constructor Detail

      • BeanManagerTest

        public BeanManagerTest()
    • 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.