geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1145648 - /geronimo/server/trunk/plugins/openejb/geronimo-openejb-clustering-wadi/src/test/java/org/apache/geronimo/openejb/cluster/stateful/container/WadiCacheTest.java
Date Tue, 12 Jul 2011 16:14:12 GMT
Author: genspring
Date: Tue Jul 12 16:14:12 2011
New Revision: 1145648

URL: http://svn.apache.org/viewvc?rev=1145648&view=rev
Log:
fix the compilation error caused by openejb api changes.

Modified:
    geronimo/server/trunk/plugins/openejb/geronimo-openejb-clustering-wadi/src/test/java/org/apache/geronimo/openejb/cluster/stateful/container/WadiCacheTest.java

Modified: geronimo/server/trunk/plugins/openejb/geronimo-openejb-clustering-wadi/src/test/java/org/apache/geronimo/openejb/cluster/stateful/container/WadiCacheTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/geronimo-openejb-clustering-wadi/src/test/java/org/apache/geronimo/openejb/cluster/stateful/container/WadiCacheTest.java?rev=1145648&r1=1145647&r2=1145648&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openejb/geronimo-openejb-clustering-wadi/src/test/java/org/apache/geronimo/openejb/cluster/stateful/container/WadiCacheTest.java
(original)
+++ geronimo/server/trunk/plugins/openejb/geronimo-openejb-clustering-wadi/src/test/java/org/apache/geronimo/openejb/cluster/stateful/container/WadiCacheTest.java
Tue Jul 12 16:14:12 2011
@@ -42,6 +42,7 @@ import org.apache.openejb.core.ThreadCon
 import org.apache.openejb.core.stateful.Cache.CacheListener;
 import org.apache.openejb.core.stateful.Instance;
 import org.apache.openejb.loader.SystemInstance;
+import org.apache.openejb.persistence.JtaEntityManagerRegistry;
 
 /**
  * @version $Rev$ $Date$
@@ -112,7 +113,7 @@ public class WadiCacheTest extends RMock
 
         try {
             VMID primaryKey = new VMID();
-            Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null,
(Map<EntityManagerFactory, EntityManager>) null);
+            Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null,
(Map<EntityManagerFactory, JtaEntityManagerRegistry.EntityManagerTracker>) null);
             manager.add(primaryKey, instance);
             fail();
         } catch (IllegalStateException e) {
@@ -128,7 +129,7 @@ public class WadiCacheTest extends RMock
 
         manager.addSessionManager(deploymentId, sessionManager);
 
-        Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null,
(Map<EntityManagerFactory, EntityManager>) null);
+        Instance instance = new Instance(deploymentInfo, primaryKey, new Object(), null,
(Map<EntityManagerFactory, JtaEntityManagerRegistry.EntityManagerTracker>) null);
         manager.add(primaryKey, instance);
     }
 
@@ -218,7 +219,7 @@ public class WadiCacheTest extends RMock
     private FutureTask<Instance> newBeanEntryTask(final VMID primaryKey, Session session)
{
         final FutureTask<Instance> newBeanEntryTask = new FutureTask<Instance>(new
Callable<Instance>() {
             public Instance call() throws Exception {
-                Instance instance = new Instance(deploymentInfo, primaryKey, new Object(),
null, (Map<EntityManagerFactory, EntityManager>) null);
+                Instance instance = new Instance(deploymentInfo, primaryKey, new Object(),
null, (Map<EntityManagerFactory, JtaEntityManagerRegistry.EntityManagerTracker>) null);
                 manager.add(primaryKey, instance);
                 return instance;
             }



Mime
View raw message