Skip to content

Commit b3f0d0a

Browse files
author
Alexandru Scvortov
committed
check dlx routing key arg
1 parent d5aa919 commit b3f0d0a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,16 @@ public void testDeclareQueueWithInvalidDeadLetterExchangeArg()
6161
} catch(IOException ex) {
6262
checkShutdownSignal(AMQP.PRECONDITION_FAILED, ex);
6363
}
64+
}
6465

66+
public void testDeclareQueueWithInvalidDeadLetterRoutingKeyArg()
67+
throws IOException
68+
{
69+
try {
70+
declareQueue("foo", "amq.direct", 144, null);
71+
} catch(IOException ex) {
72+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, ex);
73+
}
6574
}
6675

6776
public void testDeadLetterQueueTTLExpiredMessages() throws Exception {

0 commit comments

Comments
 (0)