db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r1143939 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
Date Thu, 07 Jul 2011 17:55:50 GMT
Author: dag
Date: Thu Jul  7 17:55:49 2011
New Revision: 1143939

URL: http://svn.apache.org/viewvc?rev=1143939&view=rev
Log:
DERBY-5305 Convert store/updatelocks.sql to JUnit

Follow-up patch: commented out the unused debug method "show".

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java?rev=1143939&r1=1143938&r2=1143939&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/UpdateLocksTest.java
Thu Jul  7 17:55:49 2011
@@ -7581,37 +7581,40 @@ public class UpdateLocksTest extends Bas
 
     }
 
-    private void show(ResultSet rs, boolean unPadded) throws SQLException {
-        System.err.println("Isolation:" +
-                           rs.getStatement().
-                           getConnection().
-                           getTransactionIsolation());
-        System.err.println("UnPadded == " + unPadded);
-        System.err.println("        JDBC.assertUnorderedResultSet(\n" +
-                           "            ltrs,\n" +
-                           "            new String[][]{");
-        int rowNo = 0;
-        while (rs.next()) {
-            if (rowNo++ != 0) {
-                System.err.print(",\n");
-            }
-
-            System.err.print(
-                "                {\"" +
-                rs.getString(1).trim() + "\", \"" +
-                rs.getString(2).trim() + "\", \"" +
-                rs.getString(3).trim() + "\", \"" +
-                rs.getString(4).trim() + "\", \"" +
-                rs.getString(5).trim() + "\", \"" +
-                rs.getString(6).trim() + "\", \"" +
-                rs.getString(7).trim() + "\", \"" +
-                rs.getString(8).trim() + "\", \"" +
-                rs.getString(9).trim() + "\"}");
-        }
-
-        System.err.print("};\n");
-        rs.close();
-    }
+    // /**
+    //  * Useful for debugging result sets if the test fails.
+    //  */
+    // private void show(ResultSet rs, boolean unPadded) throws SQLException {
+    //     System.err.println("Isolation:" +
+    //                        rs.getStatement().
+    //                        getConnection().
+    //                        getTransactionIsolation());
+    //     System.err.println("UnPadded == " + unPadded);
+    //     System.err.println("        JDBC.assertUnorderedResultSet(\n" +
+    //                        "            ltrs,\n" +
+    //                        "            new String[][]{");
+    //     int rowNo = 0;
+    //     while (rs.next()) {
+    //         if (rowNo++ != 0) {
+    //             System.err.print(",\n");
+    //         }
+    //
+    //         System.err.print(
+    //             "                {\"" +
+    //             rs.getString(1).trim() + "\", \"" +
+    //             rs.getString(2).trim() + "\", \"" +
+    //             rs.getString(3).trim() + "\", \"" +
+    //             rs.getString(4).trim() + "\", \"" +
+    //             rs.getString(5).trim() + "\", \"" +
+    //             rs.getString(6).trim() + "\", \"" +
+    //             rs.getString(7).trim() + "\", \"" +
+    //             rs.getString(8).trim() + "\", \"" +
+    //             rs.getString(9).trim() + "\"}");
+    //     }
+    //
+    //     System.err.print("};\n");
+    //     rs.close();
+    // }
 
     private static String pad2(String s, int i) {
         if (i == 0) {



Mime
View raw message