Skip to content

Commit 76b4440

Browse files
author
Alexandru Scvortov
committed
added test for trying to declare a queue named amq.genbah in client scope
1 parent eed36f0 commit 76b4440

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ public void testClientNoAccess()
262262
channel.queuePurge(queueName); // read
263263
channel.queueDelete(queueName); // configure
264264
}
265+
266+
expectExceptionRun(AMQP.ACCESS_REFUSED, new WithName() {
267+
public void with(String _) throws IOException {
268+
channel.queueDeclare("amq.genbah", false, false, false, null);
269+
}}
270+
);
271+
265272
commonNoAccessTests();
266273
}
267274

0 commit comments

Comments
 (0)