Class AlterableContextTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class AlterableContextTest
    extends AbstractTest
    Tests for https://issues.jboss.org/browse/CDI-139

    This test was originally part of the Weld test suite.

    Author:
    Jozef Hartinger, Martin Kouba
    • Constructor Detail

      • AlterableContextTest

        public AlterableContextTest()
    • Method Detail

      • createTestArchive

        @Deployment
        public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
      • testApplicationScopedComponent

        @SpecAssertion(section="context",
                       id="t")
        public void testApplicationScopedComponent()
      • testRequestScopedComponent

        @SpecAssertion(section="context",
                       id="t")
        public void testRequestScopedComponent()
      • testNothingHappensIfNoInstanceToDestroy

        @SpecAssertion(section="context",
                       id="t")
        public void testNothingHappensIfNoInstanceToDestroy​(ApplicationScopedComponent application)