You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2006/10/05 04:59:26 UTC

svn commit: r453095 - /incubator/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessContainerTest.java

Author: dblevins
Date: Wed Oct  4 19:59:26 2006
New Revision: 453095

URL: http://svn.apache.org/viewvc?view=rev&rev=453095
Log:
Verify pass by value

Modified:
    incubator/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessContainerTest.java

Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessContainerTest.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessContainerTest.java?view=diff&rev=453095&r1=453094&r2=453095
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessContainerTest.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessContainerTest.java Wed Oct  4 19:59:26 2006
@@ -100,6 +100,7 @@
         // Do a business method...
         Stack<Lifecycle> lifecycle = widget.getLifecycle();
         assertNotNull("lifecycle",lifecycle);
+        assertNotSame("is copy", lifecycle, WidgetBean.lifecycle);
 
         // Check the lifecycle of the bean
         List expected = Arrays.asList(Lifecycle.values());
@@ -133,6 +134,8 @@
 
         ProxyManager.registerFactory("ivm_server", new Jdk13ProxyFactory());
         ProxyManager.setDefaultFactory("ivm_server");
+
+        WidgetBean.lifecycle.clear();
     }
 
     private static String join(String delimeter, List items) {
@@ -166,7 +169,7 @@
 
     public static class WidgetBean implements Widget, RemoteWidget {
 
-        private Stack<Lifecycle> lifecycle = new Stack();
+        private static Stack<Lifecycle> lifecycle = new Stack();
 
         private SessionContext sessionContext;