Skip to content

Commit 9d3718c

Browse files
author
Matthias Radestock
committed
refactoring - make Binding arg order match AMQP command
1 parent 89041d5 commit 9d3718c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ private void doAutoDelete(boolean durable, int queues) throws IOException {
350350
for (String s : queueNames) {
351351
channel.basicConsume(s, true,
352352
new QueueingConsumer(channel));
353-
Binding tmp = new Binding(binding.x, s, binding.k);
353+
Binding tmp = new Binding(s, binding.x, binding.k);
354354
sendUnroutable(tmp);
355355
}
356356
}
@@ -410,15 +410,15 @@ private static String randomString() {
410410

411411
private static class Binding {
412412

413-
String x, q, k;
413+
String q, x, k;
414414

415415
static Binding randomBinding() {
416416
return new Binding(randomString(), randomString(), randomString());
417417
}
418418

419-
private Binding(String x, String q, String k) {
420-
this.x = x;
419+
private Binding(String q, String x, String k) {
421420
this.q = q;
421+
this.x = x;
422422
this.k = k;
423423
}
424424
}

0 commit comments

Comments
 (0)