@AfterClass public static void afterClass() { brokerRunning.removeTestQueues(QUEUE_WITH_DLQ); }
@AfterClass public static void tearDown() { brokerRunning.removeTestQueues(); }
@After public void tearDown() { brokerIsRunning.deleteExchanges("si.fanout.foo", "si.fanout.channel", "si.fanout.pubSubWithEP"); brokerIsRunning.removeTestQueues(); }
@After public void tearDown() { this.brokerRunning.removeTestQueues(); ((CachingConnectionFactory) this.rabbitTemplate.getConnectionFactory()).destroy(); }
@AfterAll public static void tearDown(ConfigurableApplicationContext context) { context.stop(); // prevent queues from being redeclared after deletion RabbitAvailableCondition.getBrokerRunning().removeTestQueues("si.dsl.exception.test", "si.dsl.conv.exception.test"); }
@Override public void afterAll(ExtensionContext context) { brokerRunningHolder.remove(); Store store = getStore(context); BrokerRunning brokerRunning = store.remove(BROKER_RUNNING_BEAN, BrokerRunning.class); if (brokerRunning != null) { brokerRunning.removeTestQueues(); } }
@AfterClass public static void tearDown() { brokerRunning.removeTestQueues(); adminCf.destroy(); }
@After public void tearDown() { if (this.repeats.isFinalizing()) { this.brokerIsRunning.removeTestQueues(); } }
@After public void cleanUp() { if (connectionFactoryWithConfirmsEnabled != null) { connectionFactoryWithConfirmsEnabled.destroy(); } this.brokerIsRunning.removeTestQueues(); }
@After public void tearDown() { this.brokerIsRunning.removeTestQueues(); this.connectionFactory.destroy(); }
@After public void clear() throws Exception { logger.debug("Shutting down at end of test"); if (container != null) { container.shutdown(); } ((DisposableBean) template.getConnectionFactory()).destroy(); this.brokerIsRunning.removeTestQueues(); this.executorService.shutdown(); }
@After public void clear() throws Exception { // Wait for broker communication to finish before trying to stop container Thread.sleep(300L); logger.debug("Shutting down at end of test"); if (container != null) { container.shutdown(); } ((DisposableBean) template.getConnectionFactory()).destroy(); this.brokerIsRunning.removeTestQueues(); }
@After public void clear() throws Exception { // Wait for broker communication to finish before trying to stop container Thread.sleep(300L); logger.debug("Shutting down at end of test"); if (container != null) { container.shutdown(); } this.brokerIsRunning.removeTestQueues(); ((DisposableBean) template.getConnectionFactory()).destroy(); }
@After public void cleanUp() { this.brokerIsRunning.removeTestQueues(); this.template.stop(); this.connectionFactory.destroy(); }
@After public void clear() throws Exception { // Wait for broker communication to finish before trying to stop container logger.debug("Shutting down at end of test"); if (container != null) { container.shutdown(); } ((DisposableBean) template.getConnectionFactory()).destroy(); this.brokerIsRunning.removeTestQueues(); }
@After public void cleanup() { this.template.stop(); this.connectionFactory.destroy(); this.brokerIsRunning.removeTestQueues(); }
@After public void close() { if (!this.connectionFactory.getVirtualHost().equals("non-existent")) { this.brokerIsRunning.removeTestQueues(); } assertEquals("bar", connectionFactory.getRabbitConnectionFactory().getClientProperties().get("foo")); connectionFactory.destroy(); }
@After public void cleanUp() { if (!repeat.isFinalizing()) { return; } this.template.stop(); this.connectionFactory.destroy(); this.brokerIsRunning.removeTestQueues(); }
@After public void cleanup() throws Exception { this.template.stop(); ((DisposableBean) this.template.getConnectionFactory()).destroy(); this.brokerIsRunning.removeTestQueues(); }
@After public void cleanUp() { this.templateWithConfirmsEnabled.stop(); this.templateWithReturnsEnabled.stop(); this.connectionFactory.destroy(); this.connectionFactoryWithConfirmsEnabled.destroy(); this.connectionFactoryWithReturnsEnabled.destroy(); this.brokerIsRunning.removeTestQueues(); this.executorService.shutdown(); }