Class ProcessInjectionTargetEventThrowsExceptionTest

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

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

      • ProcessInjectionTargetEventThrowsExceptionTest

        public ProcessInjectionTargetEventThrowsExceptionTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="process_injection_target",
                       id="f")
        public void testProcessInjectionTargetEventThrowsExceptionNotOk()