db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r594393 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
Date Tue, 13 Nov 2007 02:25:51 GMT
Author: myrnavl
Date: Mon Nov 12 18:25:48 2007
New Revision: 594393

URL: http://svn.apache.org/viewvc?rev=594393&view=rev
Log:
DERBY-2903 ; adjusting test to run ok with CDC Foundation / JSR169

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java?rev=594393&r1=594392&r2=594393&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/SysinfoCPCheckTest.java
Mon Nov 12 18:25:48 2007
@@ -36,6 +36,7 @@
 
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.Derby;
+import org.apache.derbyTesting.junit.JDBC;
 
 public class SysinfoCPCheckTest extends BaseJDBCTestCase {
 
@@ -210,6 +211,10 @@
 
     public boolean checkClientOrServer(String kind)
     {
+        // JSR169 / J2ME does not support client or server
+        if (JDBC.vmSupportsJSR169())
+            return false;
+
         if (kind == null)
             return true;
         // if there is no derbynet.jar, the syntax should still
@@ -242,4 +247,4 @@
     ByteArrayOutputStream getOutputStream() {
         return new ByteArrayOutputStream(20 * 1024);
     }
-}
\ No newline at end of file
+}



Mime
View raw message