Author: jmesnil
Date: 2009-11-27 06:54:46 -0500 (Fri, 27 Nov 2009)
New Revision: 8428
Modified:
trunk/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
Log:
display more contextual info if the assertion fails
Modified:
trunk/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java 2009-11-27
10:39:35 UTC (rev 8427)
+++
trunk/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java 2009-11-27
11:54:46 UTC (rev 8428)
@@ -809,7 +809,9 @@
if (prevCount != null)
{
- assertEquals(prevCount + consumerIDs.length, count);
+ assertEquals("consumer " + i + " received
unround-robined message (previous was " + prevCount + ")",
+ prevCount + consumerIDs.length,
+ count);
}
assertFalse(counts.contains(count));
Show replies by date