db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r496602 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SqlExceptionTest.java
Date Tue, 16 Jan 2007 06:05:58 GMT
Author: myrnavl
Date: Mon Jan 15 22:05:58 2007
New Revision: 496602

URL: http://svn.apache.org/viewvc?view=rev&rev=496602
Log:
DERBY-2157 - test SqlException should not run with JSR169

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SqlExceptionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SqlExceptionTest.java?view=diff&rev=496602&r1=496601&r2=496602
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SqlExceptionTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SqlExceptionTest.java
Mon Jan 15 22:05:58 2007
@@ -20,6 +20,7 @@
 package org.apache.derbyTesting.functionTests.tests.derbynet;
 
 import org.apache.derbyTesting.junit.BaseTestCase;
+import org.apache.derbyTesting.junit.JDBC;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -90,7 +91,11 @@
     }
 
     public static Test suite() {
-        return new TestSuite(SqlExceptionTest.class,
-                             "SqlExceptionTest");
+    	if ( JDBC.vmSupportsJSR169())
+    		// see DERBY-2157 for details
+    		return new TestSuite("empty SqlExceptionTest - client not supported on JSR169");
+    	else 
+    		return new TestSuite(SqlExceptionTest.class,
+                "SqlExceptionTest");
     }
 }



Mime
View raw message