Skip to content

Commit cbe6202

Browse files
author
Simon MacMullen
committed
Merge default into amqp_0_9_1
2 parents 59a364c + aca1b1f commit cbe6202

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

src/com/rabbitmq/client/impl/AMQConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public void start()
309309
// still in generated code; just pass a dummy value here
310310
Method res = _channel0.exnWrappingRpc(new AMQImpl.Connection.Open(_virtualHost,
311311
"",
312-
true)).getMethod();
312+
false)).getMethod();
313313
return;
314314
}
315315

test/src/com/rabbitmq/client/test/server/Permissions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected void addRestrictedAccount()
8686
runCtl("add_vhost /test");
8787
runCtl("set_permissions -p /test test configure write read");
8888
runCtl("set_permissions -p /test testadmin \".*\" \".*\" \".*\"");
89-
runCtl("set_permissions -p /test noaccess \"\" \"\" \"\"");
89+
runCtl("set_permissions -p /test -s all noaccess \"\" \"\" \"\"");
9090
}
9191

9292
protected void deleteRestrictedAccount()
@@ -270,6 +270,11 @@ public void with(String _) throws IOException {
270270
noAccessCh.queueDeclare("justaqueue", false, false, true, null);
271271
}}
272272
);
273+
expectExceptionRun(AMQP.ACCESS_REFUSED, new WithName() {
274+
public void with(String _) throws IOException {
275+
noAccessCh.queueDeclare();
276+
}}
277+
);
273278
expectExceptionRun(AMQP.ACCESS_REFUSED, new WithName() {
274279
public void with(String _) throws IOException {
275280
noAccessCh.queueDelete("configure");

test/src/com/rabbitmq/examples/MulticastMain.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ private static Options getOptions() {
176176
options.addOption(new Option("a", "autoack", false,"auto ack"));
177177
options.addOption(new Option("q", "qos", true, "qos prefetch count"));
178178
options.addOption(new Option("s", "size", true, "message size"));
179-
options.addOption(new Option("d", "redirects", true, "max redirects"));
180179
options.addOption(new Option("z", "time", true, "time limit"));
181180
Option flag = new Option("f", "flag", true, "message flag");
182181
flag.setArgs(Option.UNLIMITED_VALUES);

test/src/com/rabbitmq/examples/TestMain.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,10 @@ public void tryTopics() throws IOException {
420420
String q2 = "tryTopicsQueue2";
421421
String q3 = "tryTopicsQueue3";
422422
String x = "tryTopicsExch";
423-
_ch1.queueDeclare(q1, false, false, false, null);
424-
_ch1.queueDeclare(q2, false, false, false, null);
425-
_ch1.queueDeclare(q3, false, false, false, null);
426-
_ch1.exchangeDeclare(x, "topic", false, false, null);
423+
_ch1.queueDeclare(q1, false, true, true, null);
424+
_ch1.queueDeclare(q2, false, true, true, null);
425+
_ch1.queueDeclare(q3, false, true, true, null);
426+
_ch1.exchangeDeclare(x, "topic", false, true, null);
427427
_ch1.queueBind(q1, x, "test.#");
428428
_ch1.queueBind(q2, x, "test.test");
429429
_ch1.queueBind(q3, x, "*.test.#");
@@ -440,12 +440,6 @@ public void tryTopics() throws IOException {
440440
expect(1, drain(10, q2, true));
441441
log("About to drain q3");
442442
expect(2, drain(10, q3, true));
443-
444-
_ch1.queueDelete(q3, true, true);
445-
_ch1.queueDelete(q2, true, true);
446-
_ch1.queueDelete(q1, true, true);
447-
// We created the exchange auto_delete - it should be gone by this point.
448-
// ch1.exchangeDelete(x);
449443
}
450444

451445
public void doBasicReturn(BlockingCell cell, int expectedCode) {

0 commit comments

Comments
 (0)