db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1464382 - /db/derby/code/branches/10.8/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java
Date Thu, 04 Apr 2013 09:16:27 GMT
Author: kahatlen
Date: Thu Apr  4 09:16:27 2013
New Revision: 1464382

URL: http://svn.apache.org/r1464382
Log:
DERBY-6147: ClosedObjectTest fails on the 10.9 branch when running on Java 8

Disable the test on Java 8 or higher.

Modified:
    db/derby/code/branches/10.8/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java

Modified: db/derby/code/branches/10.8/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.8/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java?rev=1464382&r1=1464381&r2=1464382&view=diff
==============================================================================
--- db/derby/code/branches/10.8/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java
(original)
+++ db/derby/code/branches/10.8/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java
Thu Apr  4 09:16:27 2013
@@ -117,9 +117,19 @@ public class ClosedObjectTest extends Ba
     /** Creates a suite with all tests in the class. */
     public static Test suite() {
         TestSuite suite = new TestSuite("ClosedObjectTest suite");
-        suite.addTest(baseSuite("ClosedObjectTest:embedded"));
-        suite.addTest(TestConfiguration.clientServerDecorator(
-            baseSuite("ClosedObjectTest:client")));
+
+        // DERBY-6147: This version of Derby only supports JDBC
+        // versions up to JDBC 4.1. When running on a newer platform
+        // than that (Java 8 and higher), it will fail when trying to
+        // invoke methods that are found in the interfaces, but not
+        // implemented in the Derby classes. Skip the test on those
+        // platforms.
+        if (!JDBC.vmSupportsJDBC42()) {
+            suite.addTest(baseSuite("ClosedObjectTest:embedded"));
+            suite.addTest(TestConfiguration.clientServerDecorator(
+                baseSuite("ClosedObjectTest:client")));
+        }
+
         return suite;
     }
 



Mime
View raw message