Class ProcessAnnotatedTypeEventThrowsExceptionTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class ProcessAnnotatedTypeEventThrowsExceptionTest
    extends AbstractTest
    Tests that an exception thrown by a ProcessAnnotatedType event observer is treated as a definition error
    • Constructor Detail

      • ProcessAnnotatedTypeEventThrowsExceptionTest

        public ProcessAnnotatedTypeEventThrowsExceptionTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="process_annotated_type",
                       id="e")
        public void testProcessAnnotatedTypeEventThrowsExceptionNotOk()