Class ParameterizedEventTest

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

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class ParameterizedEventTest
    extends AbstractTest
    Test that verifies that the container uses the runtime type of the event object as the event type. If the event type contains an unresolved type variable the selected type is used to resolve it.

    This test was originally part of the Weld test suite.

    Author:
    Jozef Hartinger, Martin Kouba
    • Constructor Detail

      • ParameterizedEventTest

        public ParameterizedEventTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="event",id="edb") @SpecAssertion(section="observes",id="a")
        public void testSelectedEventTypeUsedForResolvingEventTypeArguments()
      • testSelectedEventTypeUsedForResolvingEventTypeArguments2

        @SpecAssertion(section="event",id="edb") @SpecAssertion(section="observes",id="a")
        public void testSelectedEventTypeUsedForResolvingEventTypeArguments2()
      • testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments

        @SpecAssertion(section="event",id="edb") @SpecAssertion(section="observes",id="a")
        public void testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments()
      • testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments2

        @SpecAssertions(@SpecAssertion(section="event",id="edb"))
        public void testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments2()
      • testEventObjectTypeUsed

        @SpecAssertions(@SpecAssertion(section="observers_assignability",id="d"))
        public void testEventObjectTypeUsed()
      • testUnresolvedTypeVariableDetected1

        @SpecAssertions(@SpecAssertion(section="event",id="f"))
        public void testUnresolvedTypeVariableDetected1()
      • testUnresolvedTypeVariableDetected2

        @SpecAssertions(@SpecAssertion(section="event",id="f"))
        public <T> void testUnresolvedTypeVariableDetected2()
      • testUnresolvedTypeVariableDetected3

        @SpecAssertions(@SpecAssertion(section="event",id="f"))
        public <T> void testUnresolvedTypeVariableDetected3()
      • testWildcardIsResolvable

        @SpecAssertions(@SpecAssertion(section="observers_assignability",id="e"))
        public void testWildcardIsResolvable()