db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1364068 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests: derbynet/PrepareStatementTest.java jdbc4/CallableStatementTest.java jdbcapi/CallableTest.java
Date Sat, 21 Jul 2012 11:56:21 GMT
Author: kahatlen
Date: Sat Jul 21 11:56:21 2012
New Revision: 1364068

URL: http://svn.apache.org/viewvc?rev=1364068&view=rev
Log:
DERBY-5871: Invoke logical statements with existing statement tests

Contributed by Mohamed Nufail.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/CallableTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.java?rev=1364068&r1=1364067&r2=1364068&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.java
Sat Jul 21 11:56:21 2012
@@ -46,6 +46,7 @@ import junit.framework.TestSuite;
 import org.apache.derbyTesting.functionTests.util.Formatters;
 import org.apache.derbyTesting.functionTests.util.streams.LoopingAlphabetStream;
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
+import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
 import org.apache.derbyTesting.junit.TestConfiguration;
 import org.apache.derbyTesting.junit.JDBC;
 
@@ -77,12 +78,19 @@ public class PrepareStatementTest extend
      * run in both embedded and client/server.
      */
     public static Test suite()
-    {	
+    {
         if ( JDBC.vmSupportsJSR169())
             // see DERBY-2233 for details
             return new TestSuite("empty PrepareStatementTest - client not supported on JSR169");
         else
-            return TestConfiguration.defaultSuite(PrepareStatementTest.class);
+        {
+            TestSuite suite = new TestSuite("PrepareStatementTest");
+            suite.addTest(TestConfiguration.defaultSuite(PrepareStatementTest.class));
+            suite.addTest(TestConfiguration.clientServerDecorator(
+                TestConfiguration.connectionCPDecorator(new CleanDatabaseTestSetup(
+                    new TestSuite(PrepareStatementTest.class)))));
+            return suite;
+        }
     }
 
 

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java?rev=1364068&r1=1364067&r2=1364068&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
Sat Jul 21 11:56:21 2012
@@ -826,6 +826,9 @@ public class CallableStatementTest  exte
         suite.addTest(baseSuite("CallableStatementTest:embedded"));
         suite.addTest(TestConfiguration.clientServerDecorator(
             baseSuite("CallableStatementTest:client")));
+        suite.addTest(TestConfiguration.clientServerDecorator(
+                                TestConfiguration.connectionCPDecorator( baseSuite
+                                        ("CallableStatementTest:logical"))));
         return suite;
     }
 

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/CallableTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/CallableTest.java?rev=1364068&r1=1364067&r2=1364068&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/CallableTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/CallableTest.java
Sat Jul 21 11:56:21 2012
@@ -175,6 +175,9 @@ public class CallableTest extends BaseJD
 
         suite.addTest(TestConfiguration.clientServerDecorator(
             baseSuite("CallableTest:client")));
+        suite.addTest(TestConfiguration.clientServerDecorator(
+                                TestConfiguration.connectionCPDecorator( baseSuite
+                                        ("CallableTest:logical"))));
         return suite;
     }
     private static Test baseSuite(String name) {



Mime
View raw message