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:
Gary Russell
2017-09-25 10:35:08 -04:00
parent a65de25572
commit bea5706e67
2 changed files with 18 additions and 8 deletions

View File

@@ -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]));