db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r432654 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetCloseTest.java
Date Fri, 18 Aug 2006 17:23:22 GMT
Author: djd
Date: Fri Aug 18 10:23:21 2006
New Revision: 432654

URL: http://svn.apache.org/viewvc?rev=432654&view=rev
Log:
Fix jdbcapi._Suite in DB2 client run by disabling ResultSetCloseTest

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetCloseTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetCloseTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetCloseTest.java?rev=432654&r1=432653&r2=432654&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetCloseTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ResultSetCloseTest.java
Fri Aug 18 10:23:21 2006
@@ -117,7 +117,17 @@
      * Create test suite for this test.
      */
     public static Test suite() {
-        return new TestSuite(ResultSetCloseTest.class,"ResultSetCloseTest suite");
+        
+        TestSuite suite = new TestSuite("ResultSetCloseTest");
+        
+        // DB2 client doesn't implement result set closing
+        // correctly wrt ensuring all its methods subsequently
+        // throw an exception.
+        if (usingDerbyNet())
+            return suite;
+        
+        suite.addTestSuite(ResultSetCloseTest.class);
+        return suite;
     }
     
 }



Mime
View raw message