db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r421832 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
Date Fri, 14 Jul 2006 08:04:41 GMT
Author: fuzzylogic
Date: Fri Jul 14 01:04:40 2006
New Revision: 421832

URL: http://svn.apache.org/viewvc?rev=421832&view=rev
Log:
DERBY-1499: Fix J2ME (wctme 5.7) tests due to reference to DriverManager
in RunList.unloadEmbeddedDriver().

Committed for Myrna Van Lunteren <m.v.lunteren@gmail.com>

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java?rev=421832&r1=421831&r2=421832&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
Fri Jul 14 01:04:40 2006
@@ -45,6 +45,8 @@
 import java.sql.DriverManager;
 import java.sql.SQLException;
 
+import org.apache.derbyTesting.functionTests.util.TestUtil;
+
 
 public class RunList
 {
@@ -1649,6 +1651,8 @@
      */
     private static void unloadEmbeddedDriver() {
         // Attempt to unload the embedded driver and engine
+        // but only if we're not having a J2ME configuration i.e. no DriverManager, so check...
+        if (TestUtil.HAVE_DRIVER_CLASS)
         try {
             DriverManager.getConnection("jdbc:derby:;shutdown=true");
         } catch (SQLException se) {



Mime
View raw message