Skip to content

Commit 00c6636

Browse files
author
Alexandru Scvortov
committed
add test for confirms on non-durable queues
1 parent 2301e0e commit 00c6636

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public void handleAck(long seqNo,
6565
channel.confirmSelect(true);
6666
channel.queueDeclare("confirm-test", true, true, true, null);
6767
channel.basicConsume("confirm-test", true, new DefaultConsumer(channel));
68+
channel.queueDeclare("confirm-test-nondurable", false, false, true, null);
69+
channel.basicConsume("confirm-test-nondurable", true,
70+
new DefaultConsumer(channel));
6871
channel.queueDeclare("confirm-test-noconsumer", true, true, true, null);
6972
channel.queueDeclare("confirm-test-2", true, true, true, null);
7073
channel.basicConsume("confirm-test-2", true, new DefaultConsumer(channel));
@@ -82,6 +85,12 @@ public void testConfirmPersistentSimple()
8285
confirmTest("confirm-test", true, false, false);
8386
}
8487

88+
public void testConfirmNonDurable()
89+
throws IOException, InterruptedException
90+
{
91+
confirmTest("confirm-test-nondurable", true, false, false);
92+
}
93+
8594
public void testConfirmPersistentImmediate()
8695
throws IOException, InterruptedException
8796
{

0 commit comments

Comments
 (0)