activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r997412 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
Date Wed, 15 Sep 2010 17:38:25 GMT
Author: gtully
Date: Wed Sep 15 17:38:25 2010
New Revision: 997412

URL: http://svn.apache.org/viewvc?rev=997412&view=rev
Log:
test that did not stop broker in teardown, schedualler on startup shows it up: https://issues.apache.org/activemq/browse/AMQ-2897

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java?rev=997412&r1=997411&r2=997412&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
Wed Sep 15 17:38:25 2010
@@ -41,15 +41,23 @@ public class JmsRollbackRedeliveryTest e
     final String brokerUrl = "vm://localhost?create=false";
     boolean consumerClose = true;
     boolean rollback = true;
+    BrokerService broker;
     
     public void setUp() throws Exception {
         setAutoFail(true);
         super.setUp();
-        BrokerService broker = new BrokerService();
+        broker = new BrokerService();
         broker.setPersistent(false);
         broker.setUseJmx(false);
         broker.start();
     }
+
+    public void tearDown() throws Exception {
+        super.tearDown();
+        if (broker != null) {
+            broker.stop();
+        }
+    }
     
 
     public void testRedelivery() throws Exception {



Mime
View raw message