Fix Http tests for the latest SF

https://build.spring.io/browse/INT-MJATS41-1306/
This commit is contained in:
Artem Bilan
2018-03-29 11:55:31 -04:00
parent 705d33a30c
commit a6771bca5c

View File

@@ -856,6 +856,7 @@ public class HttpRequestExecutingMessageHandlerTests {
ClientHttpResponse response = mock(ClientHttpResponse.class);
when(response.getStatusCode()).thenReturn(HttpStatus.NOT_FOUND);
when(response.getRawStatusCode()).thenReturn(HttpStatus.NOT_FOUND.value());
when(response.getStatusText()).thenReturn("Not Found");
when(response.getBody()).thenReturn(new ByteArrayInputStream(new byte[0]));