Search in sources :

Example 1 with WeldEvent

use of org.jboss.weld.events.WeldEvent in project core by weld.

the class WeldEventTest method testInstanceOf.

@Test
public void testInstanceOf() {
    try (WeldContainer container = new Weld().initialize()) {
        BeanInjectingEvents bean = container.select(BeanInjectingEvents.class).get();
        // assert that Event is instance of WeldEvent
        Assert.assertNotNull(bean.getPlainEvent());
        Assert.assertTrue(bean.getPlainEvent() instanceof WeldEvent);
    }
}
Also used : WeldEvent(org.jboss.weld.events.WeldEvent) WeldContainer(org.jboss.weld.environment.se.WeldContainer) Weld(org.jboss.weld.environment.se.Weld) Test(org.junit.Test)

Aggregations

Weld (org.jboss.weld.environment.se.Weld)1 WeldContainer (org.jboss.weld.environment.se.WeldContainer)1 WeldEvent (org.jboss.weld.events.WeldEvent)1 Test (org.junit.Test)1