Class PassivationCapableDependencyErrorTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class PassivationCapableDependencyErrorTest
    extends AbstractTest
    Wheel, which is a dependency of normal scoped Bicycle class, is turned into dependent bean (and thus it is no longer a passivation capable dependency). Let's see if the container detects this.

    This test was originally part of Weld test suite.

    Author:
    Jozef Hartinger, Martin Kouba
    • Constructor Detail

      • PassivationCapableDependencyErrorTest

        public PassivationCapableDependencyErrorTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertions(@SpecAssertion(section="passivation_validation",id="aa"))
        public void test()