db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vnaraya...@apache.org
Subject svn commit: r666006 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
Date Tue, 10 Jun 2008 08:30:41 GMT
Author: vnarayanan
Date: Tue Jun 10 01:30:41 2008
New Revision: 666006

URL: http://svn.apache.org/viewvc?rev=666006&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/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java?rev=666006&r1=666005&r2=666006&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
Tue Jun 10 01:30:41 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