activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1050371 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
Date Fri, 17 Dec 2010 13:01:00 GMT
Author: gtully
Date: Fri Dec 17 13:01:00 2010
New Revision: 1050371

URL: http://svn.apache.org/viewvc?rev=1050371&view=rev
Log:
use autofail such that a hang in this test will not block the test run and give us a stack
trace

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java?rev=1050371&r1=1050370&r2=1050371&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2149Test.java Fri
Dec 17 13:01:00 2010
@@ -36,6 +36,7 @@ import javax.jms.TransactionRolledBackEx
 import junit.framework.TestCase;
 
 import org.apache.activemq.ActiveMQConnectionFactory;
+import org.apache.activemq.AutoFailTestSupport;
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.broker.region.Destination;
 import org.apache.activemq.broker.region.DestinationStatistics;
@@ -52,7 +53,7 @@ interface Configurer {
     public void configure(BrokerService broker) throws Exception;
 }
 
-public class AMQ2149Test extends TestCase {
+public class AMQ2149Test extends AutoFailTestSupport {
 
     private static final Log LOG = LogFactory.getLog(AMQ2149Test.class);
 
@@ -112,6 +113,8 @@ public class AMQ2149Test extends TestCas
     }
 
     public void setUp() throws Exception {
+        setMaxTestTime(30*60*1000);
+        setAutoFail(true);
         dataDirFile = new File("target/"+ getName());
         numtoSend = DEFAULT_NUM_TO_SEND;
         brokerStopPeriod = DEFAULT_BROKER_STOP_PERIOD;



Mime
View raw message