db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r434581 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting: functionTests/tests/lang/largeCodeGen.java junit/JDBC.java
Date Fri, 25 Aug 2006 00:35:50 GMT
Author: djd
Date: Thu Aug 24 17:35:49 2006
New Revision: 434581

URL: http://svn.apache.org/viewvc?rev=434581&view=rev
Log:
Remove the assertSQLState from JDBC, one was already in BaseJDBCTestCase.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/largeCodeGen.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/largeCodeGen.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/largeCodeGen.java?rev=434581&r1=434580&r2=434581&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/largeCodeGen.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/largeCodeGen.java
Thu Aug 24 17:35:49 2006
@@ -116,7 +116,7 @@
             // The top level exception is expected to be
             // the "user-friendly" query is too complex
             // rather than some linkage error.
-            JDBC.assertSQLState("42ZA0", e);
+            assertSQLState("42ZA0", e);
 			return true;
 			
 		}
@@ -298,7 +298,7 @@
             // The top level exception is expected to be
             // the "user-friendly" query is too complex
             // rather than some linkage error.
-            JDBC.assertSQLState("42ZA0", sqle);
+            assertSQLState("42ZA0", sqle);
 
 			return true;
 			
@@ -411,7 +411,7 @@
             // The top level exception is expected to be
             // the "user-friendly" query is too complex
             // rather than some linkage error.
-            JDBC.assertSQLState("42ZA0", e);
+            assertSQLState("42ZA0", e);
         }
 
         return true;

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java?rev=434581&r1=434580&r2=434581&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/JDBC.java Thu Aug 24 17:35:49
2006
@@ -318,16 +318,6 @@
 		}
 		rs.close();
 	}
-    
-    /**
-     * Assert a SQL state is the expected value.
-     * @param expected Expected SQLState.
-     * @param sqle SQLException caught
-     */
-    public static void assertSQLState(String expected, SQLException sqle)
-    {
-        Assert.assertEquals("Unexpected SQL State", expected, sqle.getSQLState());
-    }
 	
 	/**
 	 * Escape a non-qualified name so that it is suitable



Mime
View raw message