Skip to content

Commit a6771bc

Browse files
committed
Fix Http tests for the latest SF
https://build.spring.io/browse/INT-MJATS41-1306/
1 parent 705d33a commit a6771bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-integration-http/src/test/java/org/springframework/integration/http/outbound/HttpRequestExecutingMessageHandlerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ private HttpHeaders setUpMocksToCaptureSentHeaders(RestTemplate restTemplate) th
856856

857857
ClientHttpResponse response = mock(ClientHttpResponse.class);
858858
when(response.getStatusCode()).thenReturn(HttpStatus.NOT_FOUND);
859+
when(response.getRawStatusCode()).thenReturn(HttpStatus.NOT_FOUND.value());
859860
when(response.getStatusText()).thenReturn("Not Found");
860861
when(response.getBody()).thenReturn(new ByteArrayInputStream(new byte[0]));
861862

0 commit comments

Comments
 (0)