Class ParameterizedEventTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.jboss.cdi.tck.AbstractTest
-
- org.jboss.cdi.tck.tests.event.parameterized.ParameterizedEventTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
@SpecVersion(spec="cdi", version="2.0") public class ParameterizedEventTest extends AbstractTestTest 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
-
-
Field Summary
-
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
-
-
Constructor Summary
Constructors Constructor Description ParameterizedEventTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchivecreateTestArchive()voidtestEventObjectTypeUsed()voidtestSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments()voidtestSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments2()voidtestSelectedEventTypeUsedForResolvingEventTypeArguments()voidtestSelectedEventTypeUsedForResolvingEventTypeArguments2()voidtestUnresolvedTypeVariableDetected1()<T> voidtestUnresolvedTypeVariableDetected2()<T> voidtestUnresolvedTypeVariableDetected3()voidtestWildcardIsResolvable()-
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentBeanContainer, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
-
-
-
-
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()
-
-