[weld-commits] Weld SVN: r5701 - java-se/trunk/src/test/java/org/jboss/weld/environment/se/test.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Mon Feb 1 15:30:30 EST 2010
Author: pete.muir at jboss.org
Date: 2010-02-01 15:30:29 -0500 (Mon, 01 Feb 2010)
New Revision: 5701
Modified:
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java
Log:
actually call the container initialized event
Modified: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java 2010-02-01 20:07:49 UTC (rev 5700)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java 2010-02-01 20:30:29 UTC (rev 5701)
@@ -19,6 +19,7 @@
import org.jboss.weld.environment.se.ShutdownManager;
import org.jboss.weld.environment.se.Weld;
import org.jboss.weld.environment.se.WeldContainer;
+import org.jboss.weld.environment.se.events.ContainerInitialized;
import org.jboss.weld.environment.se.test.events.Foo;
import org.testng.annotations.Test;
@@ -34,6 +35,8 @@
{
Foo.reset();
WeldContainer weld = new Weld().initialize();
+ weld.event().select(ContainerInitialized.class).fire(new ContainerInitialized());
+ assert Foo.isObservedContainerInitialized();
assert !Foo.isObservedEventTest();
shutdownManager(weld);
}
More information about the weld-commits
mailing list