Class StartupShutdownTest


  • @SpecVersion(spec="cdi",
                 version="4.0")
    public class StartupShutdownTest
    extends Object
    Tests Startup and Shutdown event delivery. The reason we test this in SE container is that we can make assertions on both of these events as the test spans even beyond the CDI container lifecycle.
    • Constructor Detail

      • StartupShutdownTest

        public StartupShutdownTest()
    • Method Detail

      • createTestArchive

        @Deployment
        public static org.jboss.shrinkwrap.api.Archive<?> createTestArchive()
      • testEvents

        @SpecAssertion(section="startup_event",id="aa") @SpecAssertion(section="startup_event",id="ab") @SpecAssertion(section="shutdown_event",id="aa") @SpecAssertion(section="shutdown_event",id="ab")
        public void testEvents()