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
This commit is contained in:
Timothy A. Bish 2013-01-03 20:12:30 +00:00
parent 0aedae6b1d
commit 123a512370
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}