db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r795092 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java
Date Fri, 17 Jul 2009 14:15:10 GMT
Author: kahatlen
Date: Fri Jul 17 14:15:10 2009
New Revision: 795092

URL: http://svn.apache.org/viewvc?rev=795092&view=rev
Log:
DERBY-4311: BaseJDBCTestCase.assertErrorCode() never fails

Removed the broken methods.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java?rev=795092&r1=795091&r2=795092&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java Fri
Jul 17 14:15:10 2009
@@ -811,23 +811,6 @@
         assertSQLState("Unexpected SQL state.", expected, exception);
     }
     
-    public static void assertErrorCode(String message, int expected, SQLException exception)
{
-       while (exception != null)
-       {
-           try {
-               assertEquals(message, expected,exception.getErrorCode());
-           } catch (AssertionFailedError e) {
-               // check and see if our error code is in a chained exception
-               exception = exception.getNextException();               
-           }
-       }
-    }
-    
-    public static void assertErrorCode(int expected, SQLException exception)
-    {
-       assertErrorCode("Unexpected Error Code",expected, exception);
-    }
-    
     /**
      * Assert that the SQL statement does not compile and throws
      * a SQLException with the expected state.



Mime
View raw message