Class EventBeanObserverNotificationTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.jboss.cdi.tck.AbstractTest
-
- org.jboss.cdi.tck.tests.full.event.observer.extension.AbstractObserverNotificationTest
-
- org.jboss.cdi.tck.tests.full.event.observer.extension.EventBeanObserverNotificationTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
@SpecVersion(spec="cdi", version="2.0") public class EventBeanObserverNotificationTest extends AbstractObserverNotificationTestThis test was originally part of Weld test suite.
Note that we have to declare test methods on test class (not abstract superclass) because of the way we analyze assertions coverage.
- Author:
- Jozef Hartinger, Martin Kouba
-
-
Field Summary
-
Fields inherited from class org.jboss.cdi.tck.AbstractTest
beanManager
-
-
Constructor Summary
Constructors Constructor Description EventBeanObserverNotificationTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchivecreateTestArchive()protected voidfireEvent(Giraffe payload, Annotation... qualifiers)Template method so that we can test both events fired using BeanManager as well as the Event bean.voidtestNotifyInvoked()-
Methods inherited from class org.jboss.cdi.tck.tests.full.event.observer.extension.AbstractObserverNotificationTest
testNotifyInvokedInternal
-
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()
-
fireEvent
protected void fireEvent(Giraffe payload, Annotation... qualifiers)
Description copied from class:AbstractObserverNotificationTestTemplate method so that we can test both events fired using BeanManager as well as the Event bean.- Specified by:
fireEventin classAbstractObserverNotificationTest
-
testNotifyInvoked
@SpecAssertion(section="observer_notification",id="fb") @SpecAssertion(section="after_bean_discovery",id="eb") @SpecAssertion(section="observer_resolution",id="k") public void testNotifyInvoked()
-
-