File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
test/src/com/rabbitmq/client/test/functional Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,23 @@ public void testQueueRedeclareEquivalence() throws Exception {
115
115
}
116
116
}
117
117
118
+ public void testQueueRedeclareSemanticEquivalence () throws Exception {
119
+ declareQueue (TTL_QUEUE_NAME , (byte )10 );
120
+ declareQueue (TTL_QUEUE_NAME , 10 );
121
+ declareQueue (TTL_QUEUE_NAME , (short )10 );
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
+
118
135
/*
119
136
* Test messages expire when using basic get.
120
137
*/
You can’t perform that action at this time.
0 commit comments