Class SpecializingBeanWithoutBeanTypeOfSpecializedBeanTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class SpecializingBeanWithoutBeanTypeOfSpecializedBeanTest
    extends AbstractTest
    Test that if specializing bean does not have some bean type of specialized bean, the container automatically detects the problem and treats it as a definition error.
    Author:
    Martin Kouba
    • Constructor Detail

      • SpecializingBeanWithoutBeanTypeOfSpecializedBeanTest

        public SpecializingBeanWithoutBeanTypeOfSpecializedBeanTest()
    • Method Detail

      • createTestArchive

        @ShouldThrowException(jakarta.enterprise.inject.spi.DefinitionException.class)
        @Deployment
        public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
      • testDeployment

        @SpecAssertion(section="direct_and_indirect_specialization",
                       id="l")
        public void testDeployment()