You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/01/02 23:34:44 UTC

svn commit: r1428093 - /activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java

Author: tabish
Date: Wed Jan  2 22:34:44 2013
New Revision: 1428093

URL: http://svn.apache.org/viewvc?rev=1428093&view=rev
Log:
fix test case after changes in https://issues.apache.org/jira/browse/AMQ-4237 broker the tests queue MBean lookup

Modified:
    activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java

Modified: activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java?rev=1428093&r1=1428092&r2=1428093&view=diff
==============================================================================
--- activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java (original)
+++ activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompVirtualTopicTest.java Wed Jan  2 22:34:44 2013
@@ -240,9 +240,9 @@ public class StompVirtualTopicTest exten
 
         private long reportQueueStatistics() throws Exception {
 
-            ObjectName queueViewMBeanName = new ObjectName("org.apache.activemq:Type=Queue" +
-                                                           ",Destination=Consumer.A.VirtualTopic.FOO" +
-                                                           ",BrokerName=localhost");
+            ObjectName queueViewMBeanName = new ObjectName("org.apache.activemq:destinationType=Queue" +
+                                                           ",destinationName=Consumer.A.VirtualTopic.FOO" +
+                                                           ",type=Broker,brokerName=localhost");
             QueueViewMBean queue = (QueueViewMBean)
                 brokerService.getManagementContext().newProxyInstance(queueViewMBeanName, QueueViewMBean.class, true);