Class ProducerProcessingWithExceptionTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class ProducerProcessingWithExceptionTest
    extends AbstractTest
    Test that if observer method of a ProcessProducer event throws an exception it is treated as definition error.
    Author:
    Martin Kouba
    • Constructor Detail

      • ProducerProcessingWithExceptionTest

        public ProducerProcessingWithExceptionTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertions(@SpecAssertion(section="process_producer",id="h"))
        public void testException()