Skip to content

Commit 18ff839

Browse files
author
Simon MacMullen
committed
Cover all built in exchange types in testUnbind()
1 parent bafd351 commit 18ff839

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/src/com/rabbitmq/client/test/functional/BindingLifecycle.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,14 @@ public void testExchangePassiveDeclare() throws IOException {
185185
* Test the behaviour of queue.unbind
186186
*/
187187
public void testUnbind() throws Exception {
188+
for (String exchange: new String[]{"amq.fanout", "amq.direct", "amq.topic", "amq.headers"}) {
189+
testUnbind(exchange);
190+
}
191+
}
188192

193+
public void testUnbind(String exchange) throws Exception {
189194
Binding b = new Binding(channel.queueDeclare().getQueue(),
190-
"amq.direct",
195+
exchange,
191196
"quay");
192197

193198
// failure cases

0 commit comments

Comments
 (0)