Removing the use of getRawStatusCode

This commit is contained in:
Ryan Baxter
2022-04-26 12:46:21 -04:00
parent 1cd03a05fb
commit dbb3dcaafb
4 changed files with 5 additions and 3 deletions

View File

@@ -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()));
}

View File

@@ -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()));
}