org.jboss.cdi.tck.tests.event
Class EventTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.jboss.cdi.tck.AbstractTest
org.jboss.cdi.tck.tests.event.EventTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="cdi",
version="20091101")
public class EventTest- extends AbstractTest
Event bus tests
TODO This test was temporarily marked as integration one because of problems with arquillian-weld-ee-embedded-1.1 in
testStaticObserverMethodInvoked().
- Author:
- Nicklas Karlsson, David Allen, Martin Kouba
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
ARQUILLIAN_DATA_PROVIDER |
| Methods inherited from class org.jboss.cdi.tck.AbstractTest |
annotationSetMatches, annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, isThrowablePresent, rawTypeSetMatches, serialize, 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 |
EventTest
public EventTest()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
testObserverMethodReceivesInjectionsOnNonObservesParameters
@SpecAssertions(value={@SpecAssertion(section="10.4.2",id="i"),@SpecAssertion(section="5.5.6",id="c"),@SpecAssertion(section="2.3.5",id="ca"),@SpecAssertion(section="3.11",id="a")})
public void testObserverMethodReceivesInjectionsOnNonObservesParameters()
testStaticObserverMethodInvoked
@SpecAssertions(value={@SpecAssertion(section="10.4",id="c"),@SpecAssertion(section="5.5.6",id="a")})
public void testStaticObserverMethodInvoked()
- FIXME the spec doesn't follow this exactly because technically it isn't supposed to use the bean resolution algorithm to
obtain the instance, which it does.
testObserverCalledOnMostSpecializedInstance
@SpecAssertions(value={@SpecAssertion(section="4.3",id="cc"),@SpecAssertion(section="5.5.6",id="baa")})
public void testObserverCalledOnMostSpecializedInstance()
testEventObjectContainsTypeVariablesWhenResolvingFails
@SpecAssertion(section="11.3.11",
id="c")
public <T> void testEventObjectContainsTypeVariablesWhenResolvingFails()
testObserverMethodNotifiedWhenBindingsMatch
@SpecAssertions(value={@SpecAssertion(section="10.2.3",id="b"),@SpecAssertion(section="10.2.3",id="c")})
public void testObserverMethodNotifiedWhenBindingsMatch()
testNonStaticObserverMethodInherited
@SpecAssertion(section="4.2",
id="dc")
public void testNonStaticObserverMethodInherited()
- By default, Java implementation reuse is assumed. In this case, the producer, disposal and observer methods of the first
bean are not inherited by the second bean.
- Throws:
Exception
testNonStaticObserverMethodIndirectlyInherited
@SpecAssertions(value={@SpecAssertion(section="4.2",id="di"),@SpecAssertion(section="11.1.3",id="f")})
public void testNonStaticObserverMethodIndirectlyInherited()
testGetTransactionPhaseOnObserverMethod
@SpecAssertion(section="11.1.3",
id="e")
public void testGetTransactionPhaseOnObserverMethod()
testInstanceOfBeanForEveryEnabledObserverMethod
@SpecAssertion(section="11.1.3",
id="ga")
public void testInstanceOfBeanForEveryEnabledObserverMethod()
Copyright © 2008-2012 Seam Framework. All Rights Reserved.