Class ProducerMethodLifecycleTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class ProducerMethodLifecycleTest
    extends AbstractTest
    NOTE May be able to get rid of some of the binding types if the producer method precedence question is resolved
    • Constructor Detail

      • ProducerMethodLifecycleTest

        public ProducerMethodLifecycleTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="producer_method_lifecycle",
                       id="ea")
        public void testProducerMethodBeanCreate()
      • testProducerMethodInvokedOnCreate

        @SpecAssertions(@SpecAssertion(section="producer_method_lifecycle",id="ea"))
        public void testProducerMethodInvokedOnCreate()
      • testWhenApplicationInvokesProducerMethodParametersAreNotInjected

        @SpecAssertion(section="producer_method",
                       id="j")
        public void testWhenApplicationInvokesProducerMethodParametersAreNotInjected()
      • testCreateReturnsNullIfProducerDoesAndDependent

        @SpecAssertions(@SpecAssertion(section="producer_method_lifecycle",id="k"))
        public void testCreateReturnsNullIfProducerDoesAndDependent()
      • testCreateFailsIfProducerReturnsNullAndNotDependent

        @SpecAssertions(@SpecAssertion(section="producer_method_lifecycle",id="l"))
        public void testCreateFailsIfProducerReturnsNullAndNotDependent()
      • testProducerMethodBeanDestroy

        @SpecAssertion(section="producer_method_lifecycle",id="ma") @SpecAssertion(section="producer_method_lifecycle",id="r")
        public void testProducerMethodBeanDestroy()
      • testCreateRethrowsUncheckedException

        @SpecAssertions(@SpecAssertion(section="contextual",id="aa"))
        public void testCreateRethrowsUncheckedException()
      • testCreateWrapsCheckedExceptionAndRethrows

        @SpecAssertions(@SpecAssertion(section="contextual",id="aa"))
        public void testCreateWrapsCheckedExceptionAndRethrows()