use of com.rabbitmq.client.BuiltinExchangeType in project aop by streamnative.
the class ExchangeDeclare method doTestExchangeDeclaredWithEnumerationEquivalent.
private void doTestExchangeDeclaredWithEnumerationEquivalent(Channel channel) throws IOException, InterruptedException {
assertEquals("There are 4 standard exchange types", 4, BuiltinExchangeType.values().length);
for (BuiltinExchangeType exchangeType : BuiltinExchangeType.values()) {
channel.exchangeDeclare(NAME, exchangeType);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclare(NAME, exchangeType, false);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclare(NAME, exchangeType, false, false, null);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclare(NAME, exchangeType, false, false, false, null);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclareNoWait(NAME, exchangeType, false, false, false, null);
// no check, this one is asynchronous
channel.exchangeDelete(NAME);
}
}
use of com.rabbitmq.client.BuiltinExchangeType in project rabbitmq-java-client by rabbitmq.
the class ExchangeDeclare method doTestExchangeDeclaredWithEnumerationEquivalent.
private void doTestExchangeDeclaredWithEnumerationEquivalent(Channel channel) throws IOException, InterruptedException {
assertEquals("There are 4 standard exchange types", 4, BuiltinExchangeType.values().length);
for (BuiltinExchangeType exchangeType : BuiltinExchangeType.values()) {
channel.exchangeDeclare(NAME, exchangeType);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclare(NAME, exchangeType, false);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclare(NAME, exchangeType, false, false, null);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclare(NAME, exchangeType, false, false, false, null);
verifyEquivalent(NAME, exchangeType.getType(), false, false, null);
channel.exchangeDelete(NAME);
channel.exchangeDeclareNoWait(NAME, exchangeType, false, false, false, null);
// no check, this one is asynchronous
channel.exchangeDelete(NAME);
}
}
Aggregations