[jboss-cvs] JBossAS SVN: r60927 - 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 26 22:47:55 EST 2007
Author: bstansberry at jboss.com
Date: 2007-02-26 22:47:55 -0500 (Mon, 26 Feb 2007)
New Revision: 60927
Modified:
branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/FieldBasedTestCase.java
Log:
Better assertion messages
Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/FieldBasedTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/FieldBasedTestCase.java 2007-02-27 02:06:15 UTC (rev 60926)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/cluster/test/FieldBasedTestCase.java 2007-02-27 03:47:55 UTC (rev 60927)
@@ -98,7 +98,7 @@
Object newVersion = SessionTestUtil.getSessionVersion(adaptors[0], sessionFqn);
// The byte[] should have been updated because the POJO was
- assertFalse("Session body has been updated",
+ assertFalse("Session body has been updated --" + origVersion + " vs " + newVersion,
origVersion.equals(newVersion));
this.sleepThread(DEFAULT_SLEEP);
@@ -114,8 +114,8 @@
}
// Should match the one on server0
- assertTrue("Session body was replicated",
- newVersion.equals(replVersion));
+ assertEquals("Session body was replicated",
+ newVersion, replVersion);
}
public void testObserverRemoval() throws Exception
More information about the jboss-cvs-commits
mailing list