From 123a5123707dd972ff943c768c27c9e09bb83f30 Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Thu, 3 Jan 2013 20:12:30 +0000 Subject: [PATCH] fix test case after changes in https://issues.apache.org/jira/browse/AMQ-4237 broke the test's MBean lookup git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1428569 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/broker/QueueMbeanRestartTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java index 4ec7016375..ac9b09e371 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java @@ -37,11 +37,13 @@ public class QueueMbeanRestartTest extends TestSupport { 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 extends TestSupport { 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; }