wait for started before checking on the MBean

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1336387 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-05-09 20:42:06 +00:00
parent c17129154d
commit f13968e97e
1 changed files with 3 additions and 0 deletions

View File

@ -19,7 +19,9 @@ package org.apache.activemq.broker;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.management.ObjectName;
import junit.framework.Test;
import org.apache.activemq.TestSupport;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.util.JMXSupport;
@ -65,6 +67,7 @@ public class QueueMbeanRestartTest extends TestSupport {
broker.stop();
broker.waitUntilStopped();
createBroker(false);
broker.waitUntilStarted();
}
private void verifyPresenceOfQueueMbean() throws Exception {