db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r508555 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetHarnessJavaTest.java
Date Fri, 16 Feb 2007 20:06:45 GMT
Author: djd
Date: Fri Feb 16 12:06:44 2007
New Revision: 508555

URL: http://svn.apache.org/viewvc?view=rev&rev=508555
Log:
Make NetHarnessjavaTest run no fixtures if network server is not in the classpath.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetHarnessJavaTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetHarnessJavaTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetHarnessJavaTest.java?view=diff&rev=508555&r1=508554&r2=508555
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetHarnessJavaTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetHarnessJavaTest.java
Fri Feb 16 12:06:44 2007
@@ -24,6 +24,7 @@
 import junit.framework.TestSuite;
 
 import org.apache.derbyTesting.functionTests.util.HarnessJavaTest;
+import org.apache.derbyTesting.junit.Derby;
 import org.apache.derbyTesting.junit.TestConfiguration;
 import org.apache.derbyTesting.junit.SecurityManagerSetup;
 import org.apache.derbyTesting.junit.SupportFilesSetup;
@@ -68,7 +69,10 @@
     
     public static Test suite()
     {
-        TestSuite suite = new TestSuite("jdbcapi: old harness java tests");
+        TestSuite suite = new TestSuite("derbynet: old harness java tests");
+        
+        if (!Derby.hasServer())
+            return suite;
 
         suite.addTest(TestConfiguration.clientServerDecorator(
         		         decorate(new NetHarnessJavaTest("executeUpdate"))));



Mime
View raw message