Class DecoratorWithObserverMethodTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class DecoratorWithObserverMethodTest
    extends AbstractTest
    Test that decorators may not declare observer methods.
    Author:
    Martin Kouba
    • Constructor Detail

      • DecoratorWithObserverMethodTest

        public DecoratorWithObserverMethodTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="observes",
                       id="h")
        public void testDecoratorWithObserverMethodNotOk()