You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2010/09/15 19:38:25 UTC
svn commit: r997412 -
/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsRollbackRedeliveryTest.java
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 {