Author: clebert.suconic(a)jboss.com
Date: 2011-09-21 15:43:20 -0400 (Wed, 21 Sep 2011)
New Revision: 11392
Modified:
branches/one-offs/HornetQ_2_2_5_EAP_GA_JBPAPP_7242/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java
Log:
JBPAPP-7242 - fixing test
Modified:
branches/one-offs/HornetQ_2_2_5_EAP_GA_JBPAPP_7242/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java
===================================================================
---
branches/one-offs/HornetQ_2_2_5_EAP_GA_JBPAPP_7242/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java 2011-09-21
19:40:59 UTC (rev 11391)
+++
branches/one-offs/HornetQ_2_2_5_EAP_GA_JBPAPP_7242/tests/src/org/hornetq/tests/integration/jms/server/management/TopicControlUsingJMSTest.java 2011-09-21
19:43:20 UTC (rev 11392)
@@ -96,7 +96,7 @@
Connection connection_2 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
JMSUtil.createDurableSubscriber(connection_2, topic, clientID, subscriptionName);
Connection connection_3 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
- JMSUtil.createDurableSubscriber(connection_3, topic, clientID, subscriptionName +
"2");
+ JMSUtil.createDurableSubscriber(connection_3, topic, clientID + "2",
subscriptionName + "2");
Assert.assertEquals(3,
proxy.retrieveAttributeValue("subscriptionCount"));
Assert.assertEquals(1,
proxy.retrieveAttributeValue("nonDurableSubscriptionCount"));
@@ -115,7 +115,7 @@
Connection connection_2 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
JMSUtil.createDurableSubscriber(connection_2, topic, clientID, subscriptionName);
Connection connection_3 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
- JMSUtil.createDurableSubscriber(connection_3, topic, clientID, subscriptionName +
"2");
+ JMSUtil.createDurableSubscriber(connection_3, topic, clientID + "2",
subscriptionName + "2");
Assert.assertEquals(0, proxy.retrieveAttributeValue("messageCount"));
Assert.assertEquals(0,
proxy.retrieveAttributeValue("nonDurableMessageCount"));
@@ -140,7 +140,7 @@
Connection connection_2 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
JMSUtil.createDurableSubscriber(connection_2, topic, clientID, subscriptionName);
Connection connection_3 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
- JMSUtil.createDurableSubscriber(connection_3, topic, clientID, subscriptionName +
"2");
+ JMSUtil.createDurableSubscriber(connection_3, topic, clientID + "2",
subscriptionName + "2");
Assert.assertEquals(3,
((Object[])proxy.invokeOperation("listAllSubscriptions")).length);
Assert.assertEquals(1,
((Object[])proxy.invokeOperation("listNonDurableSubscriptions")).length);
@@ -254,7 +254,7 @@
Connection connection_2 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
TopicSubscriber durableSubscriber_2 =
JMSUtil.createDurableSubscriber(connection_2,
topic,
- clientID,
+ clientID +
"2",
subscriptionName + "2");
Assert.assertEquals(2,
proxy.retrieveAttributeValue("subscriptionCount"));
@@ -276,7 +276,7 @@
Connection connection_1 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
JMSUtil.createDurableSubscriber(connection_1, topic, clientID, subscriptionName);
Connection connection_2 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
- JMSUtil.createDurableSubscriber(connection_2, topic, clientID, subscriptionName +
"2");
+ JMSUtil.createDurableSubscriber(connection_2, topic, clientID + "2",
subscriptionName + "2");
JMSUtil.sendMessages(topic, 3);
@@ -344,7 +344,7 @@
Connection connection_2 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
JMSUtil.createDurableSubscriber(connection_2, topic, clientID, subscriptionName);
Connection connection_3 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
- JMSUtil.createDurableSubscriber(connection_3, topic, clientID, subscriptionName +
"2");
+ JMSUtil.createDurableSubscriber(connection_3, topic, clientID + "2",
subscriptionName + "2");
assertEquals(0, proxy.retrieveAttributeValue("messagesAdded"));
@@ -370,7 +370,7 @@
Connection connection_3 =
JMSUtil.createConnection(InVMConnectorFactory.class.getName());
MessageConsumer cons_3 = JMSUtil.createDurableSubscriber(connection_3,
topic,
- clientID,
+ clientID + "2",
subscriptionName +
"2",
Session.CLIENT_ACKNOWLEDGE);