Class TypeConflictDetectionTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class TypeConflictDetectionTest
    extends AbstractTest
    The spec says: "If X does not have some bean type of Y, the container automatically detects the problem and treats it as a definition error." This test verifies, that such problem is detected if the set of types of X is altered by a portable extension.

    This test was originally part of Weld test suite.

    Author:
    Jozef Hartinger, Martin Kouba
    • Constructor Detail

      • TypeConflictDetectionTest

        public TypeConflictDetectionTest()
    • Method Detail

      • createTestArchive

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

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