You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2010/05/23 18:40:01 UTC
svn commit: r947442 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
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()