Class QualifierNotDeclaredTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class QualifierNotDeclaredTest
    extends AbstractTest
    Author:
    Martin Kouba
    • Constructor Detail

      • QualifierNotDeclaredTest

        public QualifierNotDeclaredTest()
    • Method Detail

      • createTestArchive

        @Deployment
        public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
      • testResolution

        @SpecAssertion(section="declaring_selected_alternatives_bean_archive",id="ba") @SpecAssertion(section="performing_typesafe_resolution",id="lb")
        public void testResolution()
                            throws Exception
        Baz implements Foo and has True qualifier declared. Bar is enabled alternative and implements Foo but it has not True declared. Therefore the result of typesafe resolution for type Foo and qualifier True is Baz bean.
        Throws:
        Exception