Class ObserverMethodAnnotatedDisposesTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class ObserverMethodAnnotatedDisposesTest
    extends AbstractTest
    Tests an observer method that is also a disposes method for something else.
    Author:
    David Allen, Martin Kouba
    • Constructor Detail

      • ObserverMethodAnnotatedDisposesTest

        public ObserverMethodAnnotatedDisposesTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="observes",
                       id="f")
        public void testObserverMethodWithDisposesParamFails()