[jboss-cvs] JBossAS SVN: r58536 - trunk/testsuite/src/main/org/jboss/test/cluster/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Nov 18 03:20:38 EST 2006


Author: bstansberry at jboss.com
Date: 2006-11-18 03:20:37 -0500 (Sat, 18 Nov 2006)
New Revision: 58536

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java
Log:
Properly order params to assertEquals

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java	2006-11-18 08:15:18 UTC (rev 58535)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/test/HASingletonElectionPolicyTestCase.java	2006-11-18 08:20:37 UTC (rev 58536)
@@ -64,8 +64,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);
       }
       // Second policy is the youngest (position = -1)
       {
@@ -74,8 +74,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)
       {
@@ -84,8 +84,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
       {
@@ -94,8 +94,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