Fixing tests
This commit is contained in:
@@ -504,6 +504,7 @@ public class ConfigServerConfigDataLoaderTests {
|
||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||
when(response.getHeaders()).thenReturn(headers);
|
||||
when(response.getStatusCode()).thenReturn(status);
|
||||
when(response.getRawStatusCode()).thenReturn(status.value());
|
||||
when(response.getBody()).thenReturn(new ByteArrayInputStream("{}".getBytes()));
|
||||
}
|
||||
|
||||
|
||||
@@ -559,6 +559,7 @@ public class ConfigServicePropertySourceLocatorTests {
|
||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||
Mockito.when(response.getHeaders()).thenReturn(headers);
|
||||
Mockito.when(response.getStatusCode()).thenReturn(status);
|
||||
Mockito.when(response.getRawStatusCode()).thenReturn(status.value());
|
||||
Mockito.when(response.getBody()).thenReturn(new ByteArrayInputStream("{}".getBytes()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user