congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BrokerRunning.removeTestQueues
Code IndexAdd Tabnine to your IDE (free)

How to use
removeTestQueues
method
in
org.springframework.amqp.rabbit.junit.BrokerRunning

Best Java code snippets using org.springframework.amqp.rabbit.junit.BrokerRunning.removeTestQueues (Showing top 20 results out of 315)

origin: spring-projects/spring-integration

@AfterClass
public static void afterClass() {
  brokerRunning.removeTestQueues(QUEUE_WITH_DLQ);
}
origin: spring-projects/spring-integration

@AfterClass
public static void tearDown() {
  brokerRunning.removeTestQueues();
}
origin: spring-projects/spring-integration

@After
public void tearDown() {
  brokerIsRunning.deleteExchanges("si.fanout.foo", "si.fanout.channel", "si.fanout.pubSubWithEP");
  brokerIsRunning.removeTestQueues();
}
origin: spring-projects/spring-integration

@After
public void tearDown() {
  this.brokerRunning.removeTestQueues();
  ((CachingConnectionFactory) this.rabbitTemplate.getConnectionFactory()).destroy();
}
origin: spring-projects/spring-integration

@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");
}
origin: spring-projects/spring-amqp

@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();
  }
}
origin: spring-projects/spring-amqp

@AfterClass
public static void tearDown() {
  brokerRunning.removeTestQueues();
  adminCf.destroy();
}
origin: spring-projects/spring-amqp

@After
public void tearDown() {
  if (this.repeats.isFinalizing()) {
    this.brokerIsRunning.removeTestQueues();
  }
}
origin: spring-projects/spring-amqp

@After
public void cleanUp() {
  if (connectionFactoryWithConfirmsEnabled != null) {
    connectionFactoryWithConfirmsEnabled.destroy();
  }
  this.brokerIsRunning.removeTestQueues();
}
origin: spring-projects/spring-amqp

@After
public void tearDown() {
  this.brokerIsRunning.removeTestQueues();
  this.connectionFactory.destroy();
}
origin: spring-projects/spring-amqp

@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();
}
origin: spring-projects/spring-amqp

@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();
}
origin: spring-projects/spring-amqp

@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();
}
origin: spring-projects/spring-amqp

@After
public void cleanUp() {
  this.brokerIsRunning.removeTestQueues();
  this.template.stop();
  this.connectionFactory.destroy();
}
origin: spring-projects/spring-amqp

@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();
}
origin: spring-projects/spring-amqp

@After
public void cleanup() {
  this.template.stop();
  this.connectionFactory.destroy();
  this.brokerIsRunning.removeTestQueues();
}
origin: spring-projects/spring-amqp

@After
public void close() {
  if (!this.connectionFactory.getVirtualHost().equals("non-existent")) {
    this.brokerIsRunning.removeTestQueues();
  }
  assertEquals("bar", connectionFactory.getRabbitConnectionFactory().getClientProperties().get("foo"));
  connectionFactory.destroy();
}
origin: spring-projects/spring-amqp

@After
public void cleanUp() {
  if (!repeat.isFinalizing()) {
    return;
  }
  this.template.stop();
  this.connectionFactory.destroy();
  this.brokerIsRunning.removeTestQueues();
}
origin: spring-projects/spring-amqp

@After
public void cleanup() throws Exception {
  this.template.stop();
  ((DisposableBean) this.template.getConnectionFactory()).destroy();
  this.brokerIsRunning.removeTestQueues();
}
origin: spring-projects/spring-amqp

@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();
}
org.springframework.amqp.rabbit.junitBrokerRunningremoveTestQueues

Javadoc

Remove any test queues that were created by an #isRunningWithEmptyQueues(String...) method.

Popular methods of BrokerRunning

  • getConnectionFactory
    Get the connection factory used by this rule.
  • getAdminUri
    Return the admin uri.
  • setPort
  • <init>
  • closeResources
  • createQueues
  • deleteExchanges
    Delete arbitrary exchanges from the broker.
  • fatal
  • generateId
    Generate the connection id for the connection used by the rule's connection factory.
  • getConnection
  • isBrokerAndManagementRunningWithEmptyQueues
  • isDefaultQueue
  • isBrokerAndManagementRunningWithEmptyQueues,
  • isDefaultQueue,
  • isRunningWithEmptyQueues,
  • isUp,
  • setHostName,
  • clearEnvironmentVariableOverrides,
  • deleteQueues,
  • getHostName,
  • getPassword

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now