[jboss-cvs] JBossAS SVN: r60119 - trunk/ejb3/src/test/org/jboss/ejb3/test/stateful/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jan 30 10:26:05 EST 2007


Author: bstansberry at jboss.com
Date: 2007-01-30 10:26:05 -0500 (Tue, 30 Jan 2007)
New Revision: 60119

Modified:
   trunk/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/NestedBeanUnitTestCase.java
Log:
Reverse assertion that nested bean shouldn't have independent lifecycle.

Modified: trunk/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/NestedBeanUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/NestedBeanUnitTestCase.java	2007-01-30 14:39:42 UTC (rev 60118)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/stateful/unit/NestedBeanUnitTestCase.java	2007-01-30 15:26:05 UTC (rev 60119)
@@ -99,16 +99,8 @@
        
       removeBean(stateful);
        
-      // Confirm nested no longer works following parent remove
-      try
-      {
-         nested.increment();
-         fail("Nested bean still exists following destruction of parent");
-      }
-      catch (Exception good)
-      {
-         // this is what we want -- nested has no independent lifecycle
-      }
+      // Confirm nested still works following parent remove
+      assertEquals("Counter: :", 2 ,nested.increment());
        
       removeBean(nested);
        




More information about the jboss-cvs-commits mailing list