activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1336387 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/QueueMbeanRestartTest.java
Date Wed, 09 May 2012 20:42:06 GMT
Author: tabish
Date: Wed May  9 20:42:06 2012
New Revision: 1336387

URL: http://svn.apache.org/viewvc?rev=1336387&view=rev
Log:
wait for started before checking on the MBean

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=1336387&r1=1336386&r2=1336387&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
Wed May  9 20:42:06 2012
@@ -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 exten
         broker.stop();
         broker.waitUntilStopped();
         createBroker(false);
+        broker.waitUntilStarted();
     }
 
     private void verifyPresenceOfQueueMbean() throws Exception {



Mime
View raw message