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/03 21:12:31 UTC
svn commit: r1428569 -
/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
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;
}