112113114115116117118119120121122
public synchronized void doStop() throws Exception { if (container != null) { BrokerContainer temp = container; container = null; temp.stop(); } } public synchronized void doFail() { if (container != null) {
121122123124125126127128129130131
public synchronized void doFail() { if (container != null) { BrokerContainer temp = container; container = null; try { temp.stop(); } catch (JMSException e) { log.info("Caught while closing due to failure: " + e, e); } }
203204205206207208209210211
assertTrue("Should have a broker!", broker != null); assertEquals("Broker name not set!", brokerName, broker.getBrokerName()); container.start(); container.stop(); return container; } }
979899100101102103104105106107
106107108109110111112113114115116
190191192193194195196197198