Class ProcessObserverMethodExceptionTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class ProcessObserverMethodExceptionTest
    extends AbstractTest
    Tests event observer throwing exception causes container to produce a definition error.
    Author:
    David Allen, Martin Kouba
    • Constructor Detail

      • ProcessObserverMethodExceptionTest

        public ProcessObserverMethodExceptionTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="process_observer_method",
                       id="db")
        public void testExceptionIsDefinitionError()