[webbeans-commits] Webbeans SVN: r3311 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Tue Jul 28 08:58:18 EDT 2009


Author: dallen6
Date: 2009-07-28 08:58:17 -0400 (Tue, 28 Jul 2009)
New Revision: 3311

Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
Log:
Fixed a copied test that was not modified correctly.

Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java	2009-07-28 11:58:46 UTC (rev 3310)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java	2009-07-28 12:58:17 UTC (rev 3311)
@@ -192,10 +192,10 @@
    @SpecAssertion(section = "11.1.3", id = "g")
    public void testInstanceOfBeanForEveryEnabledObserverMethod()
    {
-      assert getCurrentManager().resolveObserverMethods(new StockPrice()).iterator().next().getTransactionPhase().equals(TransactionPhase.IN_PROGRESS);
-      assert getCurrentManager().resolveObserverMethods(new DisobedientDog()).iterator().next().getTransactionPhase().equals(TransactionPhase.BEFORE_COMPLETION);
-      assert getCurrentManager().resolveObserverMethods(new ShowDog()).iterator().next().getTransactionPhase().equals(TransactionPhase.AFTER_COMPLETION);
-      assert getCurrentManager().resolveObserverMethods(new SmallDog()).iterator().next().getTransactionPhase().equals(TransactionPhase.AFTER_FAILURE);
-      assert getCurrentManager().resolveObserverMethods(new LargeDog()).iterator().next().getTransactionPhase().equals(TransactionPhase.AFTER_SUCCESS);
+      assert !getCurrentManager().resolveObserverMethods(new StockPrice()).isEmpty();
+      assert !getCurrentManager().resolveObserverMethods(new DisobedientDog()).isEmpty();
+      assert !getCurrentManager().resolveObserverMethods(new ShowDog()).isEmpty();
+      assert !getCurrentManager().resolveObserverMethods(new SmallDog()).isEmpty();
+      assert !getCurrentManager().resolveObserverMethods(new LargeDog()).isEmpty();
    }
 }




More information about the weld-commits mailing list