Skip to content

Commit 7e3c47b

Browse files
author
Alexandru Scvortov
committed
add test for empty-queue purge with dlx
1 parent 0fbbf85 commit 7e3c47b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ public void testDeclareQueueWithRoutingKeyButNoDeadLetterExchange()
8989

9090
}
9191

92+
public void testDeadLetterEmpty() throws Exception {
93+
declareQueue(TEST_QUEUE_NAME, DLX, null, null);
94+
channel.queuePurge(TEST_QUEUE_NAME);
95+
channel.queueDelete(TEST_QUEUE_NAME);
96+
}
97+
9298
public void testDeadLetterQueueTTLExpiredMessages() throws Exception {
9399
Map<String, Object> args = new HashMap<String, Object>();
94100
args.put("x-message-ttl", 1000);

0 commit comments

Comments
 (0)