db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r947442 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
Date Sun, 23 May 2010 16:40:01 GMT
Author: kahatlen
Date: Sun May 23 16:40:01 2010
New Revision: 947442

URL: http://svn.apache.org/viewvc?rev=947442&view=rev
Log:
DERBY-4674: BooleanValuesTest fails if Xalan is not available

Skip the test if the required XML libraries are not present.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java?rev=947442&r1=947441&r2=947442&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
Sun May 23 16:40:01 2010
@@ -33,6 +33,7 @@ import junit.framework.TestSuite;
 
 import org.apache.derbyTesting.junit.TestConfiguration;
 import org.apache.derbyTesting.junit.JDBC;
+import org.apache.derbyTesting.junit.XML;
 
 /**
  * <p>
@@ -84,9 +85,16 @@ public class BooleanValuesTest  extends 
      */
     public static Test suite()
     {
-        Test result = (TestSuite) TestConfiguration.defaultSuite(BooleanValuesTest.class);
+        TestSuite suite = new TestSuite("BooleanValuesTest");
 
-        return result;
+        // The test uses XML columns, so it should only run if we have the
+        // required libraries.
+        if (XML.classpathMeetsXMLReqs()) {
+            suite.addTest(
+                    TestConfiguration.defaultSuite(BooleanValuesTest.class));
+        }
+
+        return suite;
     }
 
     protected void    setUp()



Mime
View raw message