Fix HTTP For Latest Spring Framework
https://build.spring.io/browse/INT-FATS5IC-277/
Fix mock for request.getRawStatusCode()
4cbef27f90
Also excluded transitive SF dependencies from spring-security.
This commit is contained in:
@@ -848,7 +848,7 @@ public class HttpRequestExecutingMessageHandlerTests {
|
||||
when(requestFactory.createRequest(any(URI.class), any(HttpMethod.class))).thenReturn(clientRequest);
|
||||
|
||||
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]));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user