rabbitmq-tests/src/test/java/com/datastax/oss/starlight/rabbitmqtests/javaclient/functional/BindingLifecycle.java
@Test
  public void exchangeDelete() throws IOException {

    boolean durable = true;
    Binding binding = setupExchangeAndRouteMessage(true);

    // Nuke the exchange and repeat this test, this time you
    // expect nothing to get routed

    channel.exchangeDelete(binding.x);
    channel.exchangeDeclare(binding.x, "direct");

    sendUnroutable(binding);

    channel.queueDelete(binding.q);
  }
/**
   * This tests whether when you delete an exchange, that any bindings attached to it are deleted as
   * well.
   */
This tests whether when you delete an exchange, that any bindings attached to it are deleted as
well.
This tests whether when you delete an exchange that any bindings attached to it are deleted as well .
@Test
  public void exchangeDelete() throws IOException {
    boolean durable = true;
    Binding binding = setupExchangeAndRouteMessage(true);
    channel.exchangeDelete(binding.x);
    channel.exchangeDeclare(binding.x, "direct");
    sendUnroutable(binding);
    channel.queueDelete(binding.q);
  }
@ Test public void exchangeDelete ( ) throws IOException { boolean durable = true ; Binding binding = setupExchangeAndRouteMessage ( true ) ; channel . exchangeDelete ( binding . x ) ; channel . exchangeDeclare ( binding . x , "direct" ) ; sendUnroutable ( binding ) ; channel . queueDelete ( binding . q ) ; }
This tests whether when you delete an exchange, that any bindings attached to it are deleted as
 well.
This tests whether when you delete an exchange that any bindings attached to it are deleted as well .
// Nuke the exchange and repeat this test, this time you // expect nothing to get routed