db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1372848 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/CallableTest.java
Date Tue, 14 Aug 2012 11:50:03 GMT
Author: kahatlen
Date: Tue Aug 14 11:50:03 2012
New Revision: 1372848

URL: http://svn.apache.org/viewvc?rev=1372848&view=rev
Log:
DERBY-5854: Test for methods in BrokeredCallableStatement

Based on patch contributed by Siddharth Srivastava.

Modified:
    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/jdbcapi/CallableTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/CallableTest.java?rev=1372848&r1=1372847&r2=1372848&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
Tue Aug 14 11:50:03 2012
@@ -168,18 +168,27 @@ public class CallableTest extends BaseJD
     }
 
     public static Test suite() {
-        // return TestConfiguration.defaultSuite(CallableTest.class);
         TestSuite suite = new TestSuite("CallableTest");
 
         suite.addTest(baseSuite("CallableTest:embedded"));
 
         suite.addTest(TestConfiguration.clientServerDecorator(
             baseSuite("CallableTest:client")));
+
+        // Test with ConnectionPoolDataSource on client in order to exercise
+        // LogicalCallableStatement (DERBY-5871).
         suite.addTest(TestConfiguration.clientServerDecorator(
-                                TestConfiguration.connectionCPDecorator( baseSuite
-                                        ("CallableTest:logical"))));
+            TestConfiguration.connectionCPDecorator(
+                baseSuite("CallableTest:logical"))));
+
+        // Test with XADataSource on embedded in order to exercise
+        // BrokeredCallableStatement (DERBY-5854).
+        suite.addTest(TestConfiguration.connectionXADecorator(
+            baseSuite("CallableTest:brokered")));
+
         return suite;
     }
+
     private static Test baseSuite(String name) {
 
         TestSuite suite = new TestSuite(name);



Mime
View raw message