openejb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r453095 - /incubator/openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessContainerTest.java
Date Thu, 05 Oct 2006 02:59:26 GMT
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;
 



Mime
View raw message