ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r547757 - /incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/BPELTestAbstract.java
Date Fri, 15 Jun 2007 18:25:19 GMT
Author: mriou
Date: Fri Jun 15 11:25:18 2007
New Revision: 547757

URL: http://svn.apache.org/viewvc?view=rev&rev=547757
Log:
Tests now force the deployment to be in-mem (as long as we're using in-mem DAOs)

Modified:
    incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/BPELTestAbstract.java

Modified: incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/BPELTestAbstract.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/BPELTestAbstract.java?view=diff&rev=547757&r1=547756&r2=547757
==============================================================================
--- incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/BPELTestAbstract.java
(original)
+++ incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/BPELTestAbstract.java
Fri Jun 15 11:25:18 2007
@@ -32,6 +32,7 @@
 import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl;
 import org.apache.ode.dao.jpa.BPELDAOConnectionFactoryImpl;
 import org.apache.ode.il.MockScheduler;
+import org.apache.ode.store.ProcessConfImpl;
 import org.apache.ode.store.ProcessStoreImpl;
 import org.apache.ode.utils.DOMUtils;
 import org.apache.ode.utils.GUID;
@@ -132,8 +133,12 @@
             public void onProcessStoreEvent(ProcessStoreEvent event) {
                 // bounce the process
                 _server.unregister(event.pid);
-                if (event.type != ProcessStoreEvent.Type.UNDEPLOYED)
-                    _server.register(store.getProcessConfiguration(event.pid));
+                if (event.type != ProcessStoreEvent.Type.UNDEPLOYED) {
+                    ProcessConfImpl conf = (ProcessConfImpl) store.getProcessConfiguration(event.pid);
+                    // Test processes always run with in-mem DAOs
+                    conf.setTransient(true);
+                    _server.register(conf);
+                }
             }
         });
         _server.init();
@@ -301,8 +306,12 @@
         }
 
         try {
-            for (QName procName : procs)
-                _server.register(store.getProcessConfiguration(procName));
+            for (QName procName : procs) {
+                ProcessConfImpl conf = (ProcessConfImpl) store.getProcessConfiguration(procName);
+                // Test processes always run with in-mem DAOs
+                conf.setTransient(true);
+                _server.register(conf);
+            }
         } catch (Exception ex) {
             if (d.expectedException == null)
                 failure(d, "REGISTER: Unexpected exception: " + ex, ex);



Mime
View raw message