rabbitmq-tests/src/test/java/com/datastax/oss/starlight/rabbitmqtests/javaclient/functional/BindingLifecycle.java
@Test
  @Ignore("Need to implement exchange autodelete first")
  public void exchangeAutoDelete() throws IOException, TimeoutException {
    doAutoDelete(false, 1);
  }
/**
   * This tests whether the server checks that an auto_delete exchange actually deletes the bindings
   * attached to it when it is deleted.
   *
   * <p>To test this, you declare and auto_delete exchange and bind an auto_delete queue to it.
   *
   * <p>Start a consumer on this queue, send a message, let it get consumed and then cancel the
   * consumer
   *
   * <p>The unsubscribe should cause the queue to auto_delete, which in turn should cause the
   * exchange to auto_delete.
   *
   * <p>Then re-declare the queue again and try to rebind it to the same exchange.
   *
   * <p>Because the exchange has been auto-deleted, the bind operation should fail.
   */
This tests whether the server checks that an auto_delete exchange actually deletes the bindings
attached to it when it is deleted.

To test this, you declare and auto_delete exchange and bind an auto_delete queue to it.

Start a consumer on this queue, send a message, let it get consumed and then cancel the
consumer

The unsubscribe should cause the queue to auto_delete, which in turn should cause the
exchange to auto_delete.

Then re-declare the queue again and try to rebind it to the same exchange.

Because the exchange has been auto-deleted, the bind operation should fail.
This tests whether the server checks that an auto_delete exchange actually deletes the bindings attached to it when it is deleted . To test this you declare and auto_delete exchange and bind an auto_delete queue to it . Start a consumer on this queue send a message let it get consumed and then cancel the consumer The unsubscribe should cause the queue to auto_delete which in turn should cause the exchange to auto_delete . Then re - declare the queue again and try to rebind it to the same exchange . Because the exchange has been auto - deleted the bind operation should fail .
@Test
  @Ignore("Need to implement exchange autodelete first")
  public void exchangeAutoDelete() throws IOException, TimeoutException {
    doAutoDelete(false, 1);
  }
@ Test @ Ignore ( "Need to implement exchange autodelete first" ) public void exchangeAutoDelete ( ) throws IOException , TimeoutException { doAutoDelete ( false , 1 ) ; }
This tests whether the server checks that an auto_delete exchange actually deletes the bindings
 attached to it when it is deleted.
This tests whether the server checks that an auto_delete exchange actually deletes the bindings attached to it when it is deleted .