db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r550990 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi: ParameterMetaDataJdbc30Test.java _Suite.java
Date Tue, 26 Jun 2007 23:54:33 GMT
Author: kmarsden
Date: Tue Jun 26 16:54:33 2007
New Revision: 550990

URL: http://svn.apache.org/viewvc?view=rev&rev=550990
Log:
DERBY-2862 ParameterMetaDataJdbc30 fails for weme6.1

Contributed by Ramin Moazeni


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMetaDataJdbc30Test.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMetaDataJdbc30Test.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMetaDataJdbc30Test.java?view=diff&rev=550990&r1=550989&r2=550990
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMetaDataJdbc30Test.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMetaDataJdbc30Test.java
Tue Jun 26 16:54:33 2007
@@ -70,13 +70,14 @@
          */
 	public static Test suite() {
         	TestSuite suite = new TestSuite("ParameterMetaDataJdbc30Test");
-
-        	suite.addTest(baseSuite("ParameterMetaDataJdbc30Test:embedded"));
-
-        	suite.addTest(
-                	TestConfiguration.clientServerDecorator(
-                        	baseSuite("ParameterMetaDataJdbc30Test:client")));
-		
+		 if (JDBC.vmSupportsJSR169())
+			return new TestSuite("Empty ParameterMetaDataJDBC30. JSR169 does not support ParameterMetaData");
+		else {	
+        		suite.addTest(baseSuite("ParameterMetaDataJdbc30Test:embedded"));
+        		suite.addTest(
+                		TestConfiguration.clientServerDecorator(
+                        		baseSuite("ParameterMetaDataJdbc30Test:client")));
+		}
         	return suite;
     	}
 

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java?view=diff&rev=550990&r1=550989&r2=550990
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java
Tue Jun 26 16:54:33 2007
@@ -75,7 +75,6 @@
 		suite.addTest(SetTransactionIsolationTest.suite());
 		suite.addTest(AuthenticationTest.suite());
 		suite.addTest(DriverTest.suite());
-		suite.addTest(ParameterMetaDataJdbc30Test.suite());
         suite.addTest(ClobTest.suite());
         suite.addTest(BlobUpdatableStreamTest.suite());
         suite.addTest(AIjdbcTest.suite());
@@ -119,6 +118,9 @@
             
             //truncate test for clob
             suite.addTest (ClobTruncateTest.suite());
+
+	    //JSR169 does not support ParameterMetaData
+	    suite.addTest(ParameterMetaDataJdbc30Test.suite());
         }
 		
         return suite;



Mime
View raw message