We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db67373 commit 1048c34Copy full SHA for 1048c34
test/src/com/rabbitmq/client/test/functional/PerQueueTTL.java
@@ -122,6 +122,16 @@ public void testQueueRedeclareSemanticEquivalence() throws Exception {
122
declareQueue(TTL_QUEUE_NAME, 10L);
123
}
124
125
+ public void testQueueRedeclareSemanticNonEquivalence() throws Exception {
126
+ declareQueue(TTL_QUEUE_NAME, 10);
127
+ try {
128
+ declareQueue(TTL_QUEUE_NAME, 10.0);
129
+ fail("Should not be able to redeclare with argument of different type");
130
+ } catch(IOException ex) {
131
+ checkShutdownSignal(AMQP.PRECONDITION_FAILED, ex);
132
+ }
133
134
+
135
/*
136
* Test messages expire when using basic get.
137
*/
0 commit comments