db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vnaraya...@apache.org
Subject svn commit: r666631 - /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
Date Wed, 11 Jun 2008 12:16:02 GMT
Author: vnarayanan
Date: Wed Jun 11 05:16:02 2008
New Revision: 666631

URL: http://svn.apache.org/viewvc?rev=666631&view=rev
Log:
DERBY-3709

Changes the replication test to ensure that the failure due
to failover being started before replication is booted is
not hidden

Patch Contributor: Ole Soldberg

Modified:
    db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java

Modified: db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java?rev=666631&r1=666630&r2=666631&view=diff
==============================================================================
--- db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
(original)
+++ db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
Wed Jun 11 05:16:02 2008
@@ -1294,20 +1294,7 @@
                 String state = se.getSQLState();
                 String expectedState = "XRE20";
                 util.DEBUG("failOver_direct Got SQLException: " + errCode + " " + state +
" " + msg);
-                if ( (errCode == -1)
-                && (state.equalsIgnoreCase(expectedState) ) )
-                {
-                    util.DEBUG("As expected.");
-                }
-                else
-                {
-                    se.printStackTrace(System.out); // FIXME!
-                }
-                ;
-            }
-            catch (Exception ex)
-            {
-                ex.printStackTrace(System.out); // FIXME!
+                BaseJDBCTestCase.assertSQLState(expectedState, se);
             }
    }
     



Mime
View raw message