|
1 | 1 | /* |
2 | | - * Copyright 2002-2020 the original author or authors. |
| 2 | + * Copyright 2002-2021 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -96,7 +96,7 @@ private void testNoExistingReplyToOrCorrelationGuts(final boolean standardHeader |
96 | 96 | MessageProperties springProps = new DefaultMessagePropertiesConverter() |
97 | 97 | .toMessageProperties(basicProps, null, "UTF-8"); |
98 | 98 | Message replyMessage = new Message("!dlrow olleH".getBytes(), springProps); |
99 | | - template.onMessage(replyMessage); |
| 99 | + template.onMessage(replyMessage, mock(Channel.class)); |
100 | 100 | return null; |
101 | 101 | }).given(mockChannel).basicPublish(any(String.class), any(String.class), Mockito.anyBoolean(), |
102 | 102 | any(BasicProperties.class), any(byte[].class)); |
@@ -146,7 +146,7 @@ public void testReplyToOneDeep() throws Exception { |
146 | 146 | MessageProperties springProps = new DefaultMessagePropertiesConverter() |
147 | 147 | .toMessageProperties(basicProps, null, "UTF-8"); |
148 | 148 | Message replyMessage = new Message("!dlrow olleH".getBytes(), springProps); |
149 | | - template.onMessage(replyMessage); |
| 149 | + template.onMessage(replyMessage, mock(Channel.class)); |
150 | 150 | return null; |
151 | 151 | }).given(mockChannel).basicPublish(any(String.class), any(String.class), Mockito.anyBoolean(), |
152 | 152 | any(BasicProperties.class), any(byte[].class)); |
@@ -201,7 +201,7 @@ public void testReplyToThreeDeep() throws Exception { |
201 | 201 | nestedReplyTo.add(replyMessage.getMessageProperties().getReplyTo()); |
202 | 202 | nestedCorrelation.add(replyMessage.getMessageProperties().getCorrelationId()); |
203 | 203 | } |
204 | | - template.onMessage(replyMessage); |
| 204 | + template.onMessage(replyMessage, mock(Channel.class)); |
205 | 205 | return null; |
206 | 206 | }).given(mockChannel).basicPublish(any(String.class), any(String.class), Mockito.anyBoolean(), |
207 | 207 | any(BasicProperties.class), any(byte[].class)); |
@@ -251,7 +251,7 @@ public void testReplyToOneDeepCustomCorrelationKey() throws Exception { |
251 | 251 | MessageProperties springProps = new DefaultMessagePropertiesConverter() |
252 | 252 | .toMessageProperties(basicProps, null, "UTF-8"); |
253 | 253 | Message replyMessage = new Message("!dlrow olleH".getBytes(), springProps); |
254 | | - template.onMessage(replyMessage); |
| 254 | + template.onMessage(replyMessage, mock(Channel.class)); |
255 | 255 | return null; |
256 | 256 | }).given(mockChannel).basicPublish(any(String.class), any(String.class), Mockito.anyBoolean(), |
257 | 257 | any(BasicProperties.class), any(byte[].class)); |
@@ -308,7 +308,7 @@ public void testReplyToThreeDeepCustomCorrelationKey() throws Exception { |
308 | 308 | nestedReplyTo.add(replyMessage.getMessageProperties().getReplyTo()); |
309 | 309 | nestedCorrelation.add((String) replyMessage.getMessageProperties().getHeaders().get(CORRELATION_HEADER)); |
310 | 310 | } |
311 | | - template.onMessage(replyMessage); |
| 311 | + template.onMessage(replyMessage, mock(Channel.class)); |
312 | 312 | return null; |
313 | 313 | }).given(mockChannel).basicPublish(any(String.class), any(String.class), Mockito.anyBoolean(), |
314 | 314 | any(BasicProperties.class), any(byte[].class)); |
|
0 commit comments