org.jboss.cdi.tck.tests.event.parameterized
Class ParameterizedEventTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by org.jboss.cdi.tck.AbstractTest
          extended by org.jboss.cdi.tck.tests.event.parameterized.ParameterizedEventTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@SpecVersion(spec="cdi",
             version="20091101")
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
See Also:
WELD-1272, CDI-256

Field Summary
 
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
ParameterizedEventTest()
           
 
Method Summary
static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
           
 void testEventObjectTypeUsed()
           
 void testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments()
           
 void testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments2()
           
 void testSelectedEventTypeUsedForResolvingEventTypeArguments()
           
 void testSelectedEventTypeUsedForResolvingEventTypeArguments2()
           
 void testUnresolvedTypeVariableDetected1()
           
<T> void
testUnresolvedTypeVariableDetected2()
           
<T> void
testUnresolvedTypeVariableDetected3()
           
 
Methods inherited from class org.jboss.cdi.tck.AbstractTest
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterizedEventTest

public ParameterizedEventTest()
Method Detail

createTestArchive

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

testSelectedEventTypeUsedForResolvingEventTypeArguments

@SpecAssertions(value=@SpecAssertion(section="event",id="edb"))
public void testSelectedEventTypeUsedForResolvingEventTypeArguments()

testSelectedEventTypeUsedForResolvingEventTypeArguments2

@SpecAssertions(value=@SpecAssertion(section="event",id="edb"))
public void testSelectedEventTypeUsedForResolvingEventTypeArguments2()

testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments

@SpecAssertions(value=@SpecAssertion(section="event",id="edb"))
public void testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments()

testSelectedEventTypeCombinedWithEventObjectRuntimeTypeForResolvingEventTypeArguments2

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

testEventObjectTypeUsed

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

testUnresolvedTypeVariableDetected1

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

testUnresolvedTypeVariableDetected2

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

testUnresolvedTypeVariableDetected3

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


Copyright © 2008-2013 Seam Framework. All Rights Reserved.