test that did not stop broker in teardown, schedualer db lock on startup shows it: https://issues.apache.org/activemq/browse/AMQ-2897

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@998015 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-09-17 08:29:08 +00:00
parent cf7a935b06
commit ba78db89a3
1 changed files with 9 additions and 2 deletions

View File

@ -27,12 +27,12 @@ import org.apache.commons.logging.LogFactory;
public class MasterSlaveProducerFlowControlTest extends ProducerFlowControlTest {
static final Log LOG = LogFactory.getLog(MasterSlaveProducerFlowControlTest.class);
BrokerService slave;
protected BrokerService createBroker() throws Exception {
BrokerService service = super.createBroker();
service.start();
BrokerService slave = new BrokerService();
slave = new BrokerService();
slave.setBrokerName("Slave");
slave.setPersistent(false);
slave.setUseJmx(false);
@ -54,4 +54,11 @@ public class MasterSlaveProducerFlowControlTest extends ProducerFlowControlTest
slave.start();
return service;
}
protected void tearDown() throws Exception {
super.tearDown();
if (slave != null) {
slave.stop();
}
}
}