File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 24
24
25
25
import org .springframework .amqp .AmqpRejectAndDontRequeueException ;
26
26
import org .springframework .amqp .ImmediateRequeueAmqpException ;
27
- import org .springframework .amqp .rabbit .support .ListenerExecutionFailedException ;
27
+ import org .springframework .amqp .core .Message ;
28
+ import org .springframework .amqp .rabbit .listener .exception .ListenerExecutionFailedException ;
28
29
29
30
/**
30
31
* @author Gary Russell
32
+ * @author Artem Bilan
33
+ *
31
34
* @since 2.1.8
32
35
*
33
36
*/
@@ -36,17 +39,19 @@ public class ContainerUtilsTests {
36
39
@ Test
37
40
void testMustRequeue () {
38
41
assertThat (ContainerUtils .shouldRequeue (false ,
39
- new ListenerExecutionFailedException ("" , new ImmediateRequeueAmqpException ("requeue" )),
42
+ new ListenerExecutionFailedException ("" , new ImmediateRequeueAmqpException ("requeue" ),
43
+ mock (Message .class )),
40
44
mock (Log .class )))
41
- .isTrue ();
45
+ .isTrue ();
42
46
}
43
47
44
48
@ Test
45
49
void testMustNotRequeue () {
46
50
assertThat (ContainerUtils .shouldRequeue (true ,
47
- new ListenerExecutionFailedException ("" , new AmqpRejectAndDontRequeueException ("no requeue" )),
51
+ new ListenerExecutionFailedException ("" , new AmqpRejectAndDontRequeueException ("no requeue" ),
52
+ mock (Message .class )),
48
53
mock (Log .class )))
49
- .isFalse ();
54
+ .isFalse ();
50
55
}
51
56
52
57
}
You can’t perform that action at this time.
0 commit comments