Changeset: 1db097f11e28 for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/1db097f11e28
Modified Files:
        tests/JDBC_API_Tester.java
Branch: default
Log Message:

Add printing missing newlines when a failure us detected.


diffs (39 lines):

diff --git a/tests/JDBC_API_Tester.java b/tests/JDBC_API_Tester.java
--- a/tests/JDBC_API_Tester.java
+++ b/tests/JDBC_API_Tester.java
@@ -699,7 +699,7 @@ final public class JDBC_API_Tester {
                        if (response != Statement.SUCCESS_NO_INFO)
                                sb.append("Creating table 
").append(tablename).append(" failed to return -2!! It returned: 
").append(response).append("\n");
                } catch (SQLException e) {
-                       sb.append("failed to create test table 
").append(tablename).append(": ").append(e.getMessage());
+                       sb.append("failed to create test table 
").append(tablename).append(": ").append(e.getMessage()).append("\n");
                }
 
                try {
@@ -707,7 +707,7 @@ final public class JDBC_API_Tester {
                        if (response != Statement.SUCCESS_NO_INFO)
                                sb.append("Creating type xml failed to return 
-2!! It returned: ").append(response).append("\n");
                } catch (SQLException e) {
-                       sb.append("failed to create type xml: 
").append(e.getMessage());
+                       sb.append("failed to create type xml: 
").append(e.getMessage()).append("\n");
                }
 
                try {
@@ -864,7 +864,7 @@ final public class JDBC_API_Tester {
                        if (response != Statement.SUCCESS_NO_INFO)
                                sb.append("Dropping table 
").append(tablename).append(" failed to return -2!! It returned: 
").append(response).append("\n");
                } catch (SQLException e) {
-                       sb.append("failed to drop test table 
").append(tablename).append(": ").append(e.getMessage());
+                       sb.append("failed to drop test table 
").append(tablename).append(": ").append(e.getMessage()).append("\n");
                }
 
                try {
@@ -872,7 +872,7 @@ final public class JDBC_API_Tester {
                        if (response != Statement.SUCCESS_NO_INFO)
                                sb.append("Dropping type xml failed to return 
-2!! It returned: ").append(response).append("\n");
                } catch (SQLException e) {
-                       sb.append("failed to drop type: 
").append(e.getMessage());
+                       sb.append("failed to drop type: 
").append(e.getMessage()).append("\n");
                }
 
                closeStmtResSet(stmt, null);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to