@SpecVersion(spec="cdi",
version="20091101")
public class FireEventTest
extends AbstractTest
beanManager| Constructor and Description |
|---|
FireEventTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive() |
void |
testBeanManagerFireEvent() |
void |
testDuplicateBindingsToFireEventFails() |
<T> void |
testEventFireThrowsExceptionIfEventObjectTypeContainsUnresovableTypeVariable() |
void |
testEventProvidesMethodForFiringEventsWithCombinationOfTypeAndBindings() |
void |
testEventSelectedFiresAndObserversNotified() |
void |
testFireContainerLifecycleEvent(ContainerLifecycleEventDispatcher containerLifecycleEvents) |
void |
testInjectedAnyEventCanFireEvent()
This test verifies that the
Event object capable of firing Item objects can be injected with the {@link |
void |
testInjectedEventAcceptsEventObject()
This test verifies that the fire() method of the injected
Event object accepts an event object and that the event
object's type is the same as the the parameterized type on the event field. |
void |
testInjectedEventCanHaveBindings()
This test verifies that the
Event object representing an Item with the @Lifted binding type is
properly injected and that this object can be used to fire an event. |
void |
testInjectedEventCanSpecifyBindingsDynamically()
This test verifies that binding types can be specified dynamically when firing an event using
Event#fire() by
first using the Event#select() method to retrieve an Event object with associated binding types. |
void |
testTypeVariableEventTypeFails() |
activate, annotationSetMatches, annotationSetMatches, destroyContext, getBeans, getBeans, getContextualReference, getContextualReference, getContextualReference, getCurrentConfiguration, getCurrentManager, getUniqueBean, getUniqueBean, isThrowablePresent, newDependentInstance, passivate, rawTypeSetMatches, setContextActive, setContextInactive, typeSetMatches@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
@SpecAssertions(value={@SpecAssertion(section="bm_fire_event",id="a"),@SpecAssertion(section="bm_fire_event",id="b")})
public void testBeanManagerFireEvent()
@SpecAssertion(section="bm_fire_event",
id="c")
public void testTypeVariableEventTypeFails()
throws Exception
Exception@SpecAssertion(section="bm_fire_event",
id="d")
public void testDuplicateBindingsToFireEventFails()
throws Exception
Exception@SpecAssertion(section="firing_events",
id="a")
public void testInjectedAnyEventCanFireEvent()
Event object capable of firing Item objects can be injected with the {@link@SpecAssertions(value={@SpecAssertion(section="firing_events",id="b"),@SpecAssertion(section="event",id="cb")})
public void testInjectedEventAcceptsEventObject()
throws SecurityException,
NoSuchFieldException,
NoSuchMethodException
Event object accepts an event object and that the event
object's type is the same as the the parameterized type on the event field.@SpecAssertions(value={@SpecAssertion(section="firing_events",id="c"),@SpecAssertion(section="event",id="cb")})
public void testInjectedEventCanHaveBindings()
Event object representing an Item with the @Lifted binding type is
properly injected and that this object can be used to fire an event. The functionality is verified by checking that the
cooresponding observer gets invoked.@SpecAssertion(section="firing_events",
id="d")
public void testInjectedEventCanSpecifyBindingsDynamically()
Event#fire() by
first using the Event#select() method to retrieve an Event object with associated binding types.@SpecAssertion(section="event",
id="ca")
public void testEventProvidesMethodForFiringEventsWithCombinationOfTypeAndBindings()
@SpecAssertion(section="event",
id="eda")
public void testEventSelectedFiresAndObserversNotified()
@SpecAssertions(value={@SpecAssertion(section="event",id="f"),@SpecAssertion(section="observer_resolution",id="j")})
public <T> void testEventFireThrowsExceptionIfEventObjectTypeContainsUnresovableTypeVariable()
@SpecAssertion(section="event",
id="g")
public void testFireContainerLifecycleEvent(ContainerLifecycleEventDispatcher containerLifecycleEvents)
Copyright © 2008-2013 Seam Framework. All Rights Reserved.