activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1428569 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
Date Thu, 03 Jan 2013 20:12:31 GMT
Author: tabish
Date: Thu Jan  3 20:12:30 2013
New Revision: 1428569

URL: http://svn.apache.org/viewvc?rev=1428569&view=rev
Log:
fix test case after changes in https://issues.apache.org/jira/browse/AMQ-4237 broke the test's
MBean lookup

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java?rev=1428569&r1=1428568&r2=1428569&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
Thu Jan  3 20:12:30 2013
@@ -37,11 +37,13 @@ public class QueueMbeanRestartTest exten
         return suite(QueueMbeanRestartTest.class);
     }
 
+    @Override
     public void setUp() throws Exception {
         topic = false;
         super.setUp();
     }
 
+    @Override
     public void tearDown() throws Exception {
         super.tearDown();
         broker.stop();
@@ -73,11 +75,11 @@ public class QueueMbeanRestartTest exten
     private void verifyPresenceOfQueueMbean() throws Exception {
         for (ObjectName name : broker.getManagementContext().queryNames(null, null)) {
             LOG.info("candidate :" + name);
-            String type = name.getKeyProperty("Type");
+            String type = name.getKeyProperty("destinationType");
             if (type != null && type.equals("Queue")) {
                 assertEquals(
                         JMXSupport.encodeObjectNamePart(((ActiveMQQueue) createDestination()).getPhysicalName()),
-                        name.getKeyProperty("Destination"));
+                        name.getKeyProperty("destinationName"));
                 LOG.info("found mbbean " + name);
                 return;
             }



Mime
View raw message