rabbitmq-tests/src/test/java/com/datastax/oss/starlight/rabbitmqtests/javaclient/functional/ExchangeDeleteIfUnused.java
@Test
  public void exchangeDelete() {
    try {
      channel.exchangeDelete(EXCHANGE_NAME, true);
      fail("Exception expected if exchange in use");
    } catch (IOException e) {
      checkShutdownSignal(AMQP.PRECONDITION_FAILED, e);
    }
  }
/* Attempt to Exchange.Delete(ifUnused = true) a used exchange.
   * Should throw an exception. */
Attempt to Exchange.Delete(ifUnused = true) a used exchange.
Should throw an exception.
Attempt to Exchange . Delete ( ifUnused = true ) a used exchange . Should throw an exception .
@Test
  public void exchangeDelete() {
    try {
      channel.exchangeDelete(EXCHANGE_NAME, true);
      fail("Exception expected if exchange in use");
    } catch (IOException e) {
      checkShutdownSignal(AMQP.PRECONDITION_FAILED, e);
    }
  }
@ Test public void exchangeDelete ( ) { try { channel . exchangeDelete ( EXCHANGE_NAME , true ) ; fail ( "Exception expected if exchange in use" ) ; } catch ( IOException e ) { checkShutdownSignal ( AMQP . PRECONDITION_FAILED , e ) ; } }
Attempt to Exchange.Delete(ifUnused = true) a used exchange.
Attempt to Exchange . Delete ( ifUnused = true ) a used exchange .