[jboss-cvs] JBossAS SVN: r60304 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 5 12:57:53 EST 2007


Author: bstansberry at jboss.com
Date: 2007-02-05 12:57:53 -0500 (Mon, 05 Feb 2007)
New Revision: 60304

Modified:
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java
Log:
Revert parameter declaration in assertEquals so failure messages are accurate

Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java	2007-02-05 17:54:44 UTC (rev 60303)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java	2007-02-05 17:57:53 UTC (rev 60304)
@@ -64,9 +64,9 @@
          
          Boolean n1 = (Boolean)adaptors[0].getAttribute(mbean, "MasterNode");
          Boolean n2 = (Boolean)adaptors[size - 1].getAttribute(mbean, "MasterNode");
-
-         assertEquals(n1, Boolean.TRUE);
-         assertEquals(n2, Boolean.FALSE);
+         
+         assertEquals(Boolean.TRUE, n1);
+         assertEquals(Boolean.FALSE, n2);
       }
       
       // Second policy is the youngest (position = -1)
@@ -76,8 +76,8 @@
          Boolean n1 = (Boolean)adaptors[0].getAttribute(mbean, "MasterNode");
          Boolean n2 = (Boolean)adaptors[size - 1].getAttribute(mbean, "MasterNode");
          
-         assertEquals(n1, Boolean.FALSE);
-         assertEquals(n2, Boolean.TRUE);
+         assertEquals(Boolean.FALSE, n1);
+         assertEquals(Boolean.TRUE, n2);
       }
       
       // 3rd policy is the 2nd oldest (position = 1)
@@ -87,8 +87,8 @@
          Boolean n1 = (Boolean)adaptors[0].getAttribute(mbean, "MasterNode");
          Boolean n2 = (Boolean)adaptors[1].getAttribute(mbean, "MasterNode");
          
-         assertEquals(n1, Boolean.FALSE);
-         assertEquals(n2, Boolean.TRUE);
+         assertEquals(Boolean.FALSE, n1);
+         assertEquals(Boolean.TRUE, n2);
       }
       
       // 4th policy is not set, default is oldest
@@ -98,8 +98,8 @@
          Boolean n1 = (Boolean)adaptors[0].getAttribute(mbean, "MasterNode");
          Boolean n2 = (Boolean)adaptors[size - 1].getAttribute(mbean, "MasterNode");
          
-         assertEquals(n1, Boolean.TRUE);
-         assertEquals(n2, Boolean.FALSE);
+         assertEquals(Boolean.TRUE, n1);
+         assertEquals(Boolean.FALSE, n2);
       }
       
       return;




More information about the jboss-cvs-commits mailing list