mirror of https://github.com/apache/activemq.git
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:
parent
0aedae6b1d
commit
123a512370
|
@ -37,11 +37,13 @@ public class QueueMbeanRestartTest extends TestSupport {
|
||||||
return suite(QueueMbeanRestartTest.class);
|
return suite(QueueMbeanRestartTest.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
topic = false;
|
topic = false;
|
||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
broker.stop();
|
broker.stop();
|
||||||
|
@ -73,11 +75,11 @@ public class QueueMbeanRestartTest extends TestSupport {
|
||||||
private void verifyPresenceOfQueueMbean() throws Exception {
|
private void verifyPresenceOfQueueMbean() throws Exception {
|
||||||
for (ObjectName name : broker.getManagementContext().queryNames(null, null)) {
|
for (ObjectName name : broker.getManagementContext().queryNames(null, null)) {
|
||||||
LOG.info("candidate :" + name);
|
LOG.info("candidate :" + name);
|
||||||
String type = name.getKeyProperty("Type");
|
String type = name.getKeyProperty("destinationType");
|
||||||
if (type != null && type.equals("Queue")) {
|
if (type != null && type.equals("Queue")) {
|
||||||
assertEquals(
|
assertEquals(
|
||||||
JMXSupport.encodeObjectNamePart(((ActiveMQQueue) createDestination()).getPhysicalName()),
|
JMXSupport.encodeObjectNamePart(((ActiveMQQueue) createDestination()).getPhysicalName()),
|
||||||
name.getKeyProperty("Destination"));
|
name.getKeyProperty("destinationName"));
|
||||||
LOG.info("found mbbean " + name);
|
LOG.info("found mbbean " + name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue