activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1080194 - /activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/bugs/AMQ2764Test.java
Date Thu, 10 Mar 2011 11:58:33 GMT
Author: dejanb
Date: Thu Mar 10 11:58:33 2011
New Revision: 1080194

URL: http://svn.apache.org/viewvc?rev=1080194&view=rev
Log:
test improvements

Modified:
    activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/bugs/AMQ2764Test.java

Modified: activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/bugs/AMQ2764Test.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/bugs/AMQ2764Test.java?rev=1080194&r1=1080193&r2=1080194&view=diff
==============================================================================
--- activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/bugs/AMQ2764Test.java
(original)
+++ activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/bugs/AMQ2764Test.java
Thu Mar 10 11:58:33 2011
@@ -32,6 +32,7 @@ import org.apache.activemq.advisory.Cons
 import org.apache.activemq.broker.BrokerFactory;
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.command.ActiveMQQueue;
+import org.apache.activemq.transport.http.WaitForJettyListener;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -221,6 +222,8 @@ public class AMQ2764Test extends TestCas
         if (brokerOne == null) {
             brokerOne = createFirstBroker();
             brokerOne.start();
+            brokerOne.waitUntilStarted();
+            WaitForJettyListener.waitForJettySocketToAccept("http://localhost:61616");
         }
     }
 
@@ -235,6 +238,8 @@ public class AMQ2764Test extends TestCas
         if (brokerTwo == null) {
             brokerTwo = createSecondBroker();
             brokerTwo.start();
+            brokerTwo.waitUntilStarted();
+            WaitForJettyListener.waitForJettySocketToAccept("http://localhost:61617");
         }
     }
 



Mime
View raw message