You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/06/15 20:25:19 UTC
svn commit: r547757 -
/incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/BPELTestAbstract.java
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);