Removing the use of getRawStatusCode
This commit is contained in:
@@ -503,7 +503,7 @@ public class ConfigServerConfigDataLoaderTests {
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||
when(response.getHeaders()).thenReturn(headers);
|
||||
when(response.getRawStatusCode()).thenReturn(status.value());
|
||||
when(response.getStatusCode()).thenReturn(status);
|
||||
when(response.getBody()).thenReturn(new ByteArrayInputStream("{}".getBytes()));
|
||||
}
|
||||
|
||||
|
||||
@@ -558,7 +558,7 @@ public class ConfigServicePropertySourceLocatorTests {
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||
Mockito.when(response.getHeaders()).thenReturn(headers);
|
||||
Mockito.when(response.getRawStatusCode()).thenReturn(status.value());
|
||||
Mockito.when(response.getStatusCode()).thenReturn(status);
|
||||
Mockito.when(response.getBody()).thenReturn(new ByteArrayInputStream("{}".getBytes()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user