Author: clebert.suconic(a)jboss.com
Date: 2011-07-14 01:57:39 -0400 (Thu, 14 Jul 2011)
New Revision: 10983
Modified:
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/management/QueueControlTest.java
Log:
Fixing test
Modified:
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/management/QueueControlTest.java
===================================================================
---
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/management/QueueControlTest.java 2011-07-13
15:41:38 UTC (rev 10982)
+++
branches/Branch_2_2_EAP_cluster_clean2/tests/src/org/hornetq/tests/integration/management/QueueControlTest.java 2011-07-14
05:57:39 UTC (rev 10983)
@@ -922,7 +922,7 @@
// the message IDs are set on the server
Map<String, Object>[] messages = queueControl.listMessages(null);
Assert.assertEquals(50, messages.length);
- assertEquals(50, ((Long)messages[0].get("count")).intValue());
+ assertEquals(50, ((Number)messages[0].get("count")).intValue());
long messageID = (Long)messages[0].get("messageID");
// delete 1st message
Show replies by date