@After public void tearDown() { if (this.repeats.isFinalizing()) { this.brokerIsRunning.removeTestQueues(); } }
@After public void clear() throws Exception { if (repeatProcessor.isFinalizing()) { // Wait for broker communication to finish before trying to stop container Thread.sleep(300L); logger.info("Shutting down at end of test"); if (container != null) { container.shutdown(); } if (connectionFactory != null) { ((DisposableBean) connectionFactory).destroy(); } this.brokerIsRunning.removeTestQueues(); } }
@After public void cleanUp() { if (!repeat.isFinalizing()) { return; } this.template.stop(); this.connectionFactory.destroy(); this.brokerIsRunning.removeTestQueues(); }