Author: ataylor
Date: 2009-12-03 05:35:49 -0500 (Thu, 03 Dec 2009)
New Revision: 8520
Modified:
trunk/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java
Log:
fixed test
Modified:
trunk/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java 2009-12-03
10:21:37 UTC (rev 8519)
+++
trunk/tests/src/org/hornetq/tests/integration/cluster/failover/GroupingFailoverTestBase.java 2009-12-03
10:35:49 UTC (rev 8520)
@@ -34,6 +34,8 @@
*/
public abstract class GroupingFailoverTestBase extends ClusterTestBase
{
+
+
public void testGroupingLocalHandlerFails() throws Exception
{
setupReplicatedServer(2, isFileStorage(), isNetty(), 0);
@@ -121,7 +123,7 @@
waitForBindings(1, "queues.testaddress", 1, 1, false);
- sendWithProperty(1, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id1"));
+ sendWithProperty(2, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id1"));
verifyReceiveAll(10, 2);
@@ -230,12 +232,12 @@
waitForBindings(1, "queues.testaddress", 1, 1, false);
- sendWithProperty(1, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id1"));
- sendWithProperty(1, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id2"));
- sendWithProperty(1, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id3"));
- sendWithProperty(1, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id4"));
- sendWithProperty(1, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id5"));
- sendWithProperty(1, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id6"));
+ sendWithProperty(2, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id1"));
+ sendWithProperty(2, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id2"));
+ sendWithProperty(2, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id3"));
+ sendWithProperty(2, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id4"));
+ sendWithProperty(2, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id5"));
+ sendWithProperty(2, "queues.testaddress", 10, false,
MessageImpl.HDR_GROUP_ID, new SimpleString("id6"));
verifyReceiveAllWithGroupIDRoundRobin(0, 30, 1, 2);