101102103104105106107108109110111
public synchronized void doStop() throws WaitingException, Exception { if (container != null) { BrokerContainer temp = container; container = null; temp.stop(); } } public synchronized void doFail() { if (container != null) {
110111112113114115116117118119120
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); } }
186187188189190191192193194
assertTrue("Should have a broker!", broker != null); assertEquals("Broker name not set!", brokerName, broker.getBrokerName()); container.start(); container.stop(); return container; } }
7778798081828384858687
8687888990919293949596
205206207208209210211212213
9899100101102103104105106107108
107108109110111112113114115116117
6465666768697071727374
7374757677787980818283