db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject svn commit: r649013 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
Date Thu, 17 Apr 2008 09:07:20 GMT
Author: johnemb
Date: Thu Apr 17 02:07:15 2008
New Revision: 649013

URL: http://svn.apache.org/viewvc?rev=649013&view=rev
Log:
DERBY-3588: AllPackages.java: Do not add a test suite by reflection if a 
ClassNotFoundException occurs. This makes it possible to run suites.All
using a 1.5 JVM when Derby has been built without Java SE 6 libraries
(and thus without JDBC 4 test classes).
Patch contributed by Ole Solberg (Ole dot Solberg at Sun dot com).

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java?rev=649013&r1=649012&r2=649013&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
Thu Apr 17 02:07:15 2008
@@ -109,6 +109,9 @@
             } else {
                throw ite;
             }
+        } catch (ClassNotFoundException ce) { // Do not add a suite not built.
+            return new TestSuite("SKIPPED: Class not found: " + className + 
+                    " - " + ce.getMessage());
         }
     }
 



Mime
View raw message