mirror of https://github.com/apache/activemq.git
test that did not stop broker in teardown, schedualler on startup shows it up: https://issues.apache.org/activemq/browse/AMQ-2897
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@997412 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a0b017611b
commit
cb519da097
|
@ -41,16 +41,24 @@ public class JmsRollbackRedeliveryTest extends AutoFailTestSupport {
|
||||||
final String brokerUrl = "vm://localhost?create=false";
|
final String brokerUrl = "vm://localhost?create=false";
|
||||||
boolean consumerClose = true;
|
boolean consumerClose = true;
|
||||||
boolean rollback = true;
|
boolean rollback = true;
|
||||||
|
BrokerService broker;
|
||||||
|
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
setAutoFail(true);
|
setAutoFail(true);
|
||||||
super.setUp();
|
super.setUp();
|
||||||
BrokerService broker = new BrokerService();
|
broker = new BrokerService();
|
||||||
broker.setPersistent(false);
|
broker.setPersistent(false);
|
||||||
broker.setUseJmx(false);
|
broker.setUseJmx(false);
|
||||||
broker.start();
|
broker.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void tearDown() throws Exception {
|
||||||
|
super.tearDown();
|
||||||
|
if (broker != null) {
|
||||||
|
broker.stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void testRedelivery() throws Exception {
|
public void testRedelivery() throws Exception {
|
||||||
doTestRedelivery(brokerUrl, false);
|
doTestRedelivery(brokerUrl, false);
|
||||||
|
|
Loading…
Reference in New Issue