db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r396889 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/XATest.java
Date Tue, 25 Apr 2006 14:04:22 GMT
Author: rhillegas
Date: Tue Apr 25 07:04:06 2006
New Revision: 396889

URL: http://svn.apache.org/viewcvs?rev=396889&view=rev
Log:
DERBY-1236: Commit Dyre's new tests for setSavepoint(), derby-1236.v1.diff.

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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/XATest.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/XATest.java?rev=396889&r1=396888&r2=396889&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/XATest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/XATest.java
Tue Apr 25 07:04:06 2006
@@ -546,9 +546,22 @@
             try {
                 conn.setAutoCommit(true);
                 System.out
-                        .println("FAIL: setAutoCommit(true) allowed in global xact");
+                        .println("FAIL: setAutoCommit(true) allowed "+
+				 "in global xact");
             } catch (SQLException e) {
             }
+            try {
+                conn.setSavepoint();
+                System.out
+                    .println("FAIL: setSavepoint() allowed in global xact");
+            } catch (SQLException e) {}
+            try {
+                conn.setSavepoint("badsavepoint");
+                System.out
+                    .println("FAIL: setAutoCommit(String) allowed in "+
+                             "global xact");
+            } catch (SQLException e) {}
+
             conn.setAutoCommit(false);
 
             // s was created in local mode so it has holdibilty



Mime
View raw message