Tabnine Logo
BrokerRunning.isDefaultQueue
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-amqp

private Channel createQueues(Connection connection) throws IOException, MalformedURLException, URISyntaxException {
  Channel channel;
  channel = connection.createChannel();
  for (String queueName : this.queues) {
    if (this.purge) {
      logger.debug("Deleting queue: " + queueName);
      // Delete completely - gets rid of consumers and bindings as well
      channel.queueDelete(queueName);
    }
    if (isDefaultQueue(queueName)) {
      // Just for test probe.
      channel.queueDelete(queueName);
    }
    else {
      channel.queueDeclare(queueName, true, false, false, null);
    }
  }
  brokerOffline.put(this.port, false);
  if (!this.assumeOnline) {
    Assume.assumeTrue(brokerOffline.get(this.port));
  }
  if (this.management) {
    Client client = new Client(getAdminUri(), this.adminUser, this.adminPassword);
    if (!client.alivenessTest("/")) {
      throw new BrokerNotAliveException("Aliveness test failed for localhost:15672 guest/quest; "
          + "management not available");
    }
  }
  return channel;
}
origin: org.springframework.amqp/spring-rabbit-junit

private Channel createQueues(Connection connection) throws IOException, MalformedURLException, URISyntaxException {
  Channel channel;
  channel = connection.createChannel();
  for (String queueName : this.queues) {
    if (this.purge) {
      logger.debug("Deleting queue: " + queueName);
      // Delete completely - gets rid of consumers and bindings as well
      channel.queueDelete(queueName);
    }
    if (isDefaultQueue(queueName)) {
      // Just for test probe.
      channel.queueDelete(queueName);
    }
    else {
      channel.queueDeclare(queueName, true, false, false, null);
    }
  }
  brokerOffline.put(this.port, false);
  if (!this.assumeOnline) {
    Assume.assumeTrue(brokerOffline.get(this.port));
  }
  if (this.management) {
    Client client = new Client(getAdminUri(), this.adminUser, this.adminPassword);
    if (!client.alivenessTest("/")) {
      throw new BrokerNotAliveException("Aliveness test failed for localhost:15672 guest/quest; "
          + "management not available");
    }
  }
  return channel;
}
org.springframework.amqp.rabbit.junitBrokerRunningisDefaultQueue

Popular methods of BrokerRunning

  • getConnectionFactory
    Get the connection factory used by this rule.
  • removeTestQueues
    Remove any test queues that were created by an #isRunningWithEmptyQueues(String...) method.
  • 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
  • getConnection,
  • isBrokerAndManagementRunningWithEmptyQueues,
  • isRunningWithEmptyQueues,
  • isUp,
  • setHostName,
  • clearEnvironmentVariableOverrides,
  • deleteQueues,
  • getHostName,
  • getPassword

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JList (javax.swing)
  • CodeWhisperer alternatives
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