You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by ms...@apache.org on 2006/12/14 21:30:01 UTC
svn commit: r487341 - in
/incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime:
ActivityRecoveryTest.java MockBpelServer.java
Author: mszefler
Date: Thu Dec 14 12:30:00 2006
New Revision: 487341
URL: http://svn.apache.org/viewvc?view=rev&rev=487341
Log:
Some small fixes to the test cases.
Modified:
incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/ActivityRecoveryTest.java
incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java
Modified: incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/ActivityRecoveryTest.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/ActivityRecoveryTest.java?view=diff&rev=487341&r1=487340&r2=487341
==============================================================================
--- incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/ActivityRecoveryTest.java (original)
+++ incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/ActivityRecoveryTest.java Thu Dec 14 12:30:00 2006
@@ -145,6 +145,12 @@
protected void tearDown() throws Exception {
_management.delete(null);
_server.shutdown();
+ _server = null;
+ _failFor = 0;
+ _invoked = 0;
+ _management = null;
+ _responseSent = false;
+ _processQName = null;
}
/**
Modified: incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java?view=diff&rev=487341&r1=487340&r2=487341
==============================================================================
--- incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java (original)
+++ incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java Thu Dec 14 12:30:00 2006
@@ -47,6 +47,7 @@
import javax.wsdl.PortType;
import javax.xml.namespace.QName;
import java.io.File;
+import java.sql.DriverManager;
import java.util.*;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
@@ -146,6 +147,13 @@
_scheduler.stop();
_scheduler.shutdown();
_jotm.stop();
+ try {
+ DriverManager.getConnection("jdbc:derby:target/test-classes/derby-db/data;shutdown=true");
+ } catch (Exception ex) {
+ System.err.println(ex.getMessage());
+ }
+
+
}
protected TransactionManager createTransactionManager() throws Exception {