File tree Expand file tree Collapse file tree 4 files changed +8
-13
lines changed
test/src/com/rabbitmq/client/test/functional Expand file tree Collapse file tree 4 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ public class ConsumerCancelledException extends RuntimeException implements
24
24
/** Default for non-checking. */
25
25
private static final long serialVersionUID = 1L ;
26
26
27
- @ Override
28
27
public ConsumerCancelledException sensibleClone () {
29
28
try {
30
29
return (ConsumerCancelledException ) super .clone ();
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ public void testConsumerCancellationInterruptsQueuingConsumerWait()
57
57
final QueueingConsumer consumer = new QueueingConsumer (channel );
58
58
Runnable receiver = new Runnable () {
59
59
60
- @ Override
61
60
public void run () {
62
61
try {
63
62
try {
Original file line number Diff line number Diff line change @@ -108,9 +108,10 @@ public void testTTLMustBePositive() throws Exception {
108
108
public void testQueueRedeclareEquivalence () throws Exception {
109
109
declareQueue (TTL_QUEUE_NAME , 10 );
110
110
try {
111
- declareQueue (TTL_QUEUE_NAME , 20 );
111
+ declareQueue (TTL_QUEUE_NAME , 20 );
112
+ fail ("Should not be able to redeclare with different TTL" );
112
113
} catch (IOException ex ) {
113
- checkShutdownSignal (AMQP .NOT_ALLOWED , ex );
114
+ checkShutdownSignal (AMQP .PRECONDITION_FAILED , ex );
114
115
}
115
116
}
116
117
Original file line number Diff line number Diff line change 18
18
package com .rabbitmq .client .test .functional ;
19
19
20
20
import com .rabbitmq .client .AMQP ;
21
+ import com .rabbitmq .client .AlreadyClosedException ;
21
22
import com .rabbitmq .client .test .BrokerTestCase ;
22
23
import java .io .IOException ;
23
24
@@ -229,15 +230,10 @@ public void testUnknownTagAck()
229
230
basicGet ();
230
231
basicAck ();
231
232
basicAck (latestTag +1 , true );
232
- try {
233
- txCommit ();
234
- fail ("expected exception" );
235
- }
236
- catch (IOException e ) {
237
- checkShutdownSignal (AMQP .PRECONDITION_FAILED , e );
238
- }
239
- connection = null ;
240
- openConnection ();
233
+ // "On a transacted channel, this check MUST be done immediately and
234
+ // not delayed until a Tx.Commit."
235
+ expectError (AMQP .PRECONDITION_FAILED );
236
+ openChannel ();
241
237
}
242
238
243
239
/*
You can’t perform that action at this time.
0 commit comments