Polishing

This commit is contained in:
Sam Brannen
2023-06-06 16:03:22 +02:00
parent 66a1be2d86
commit b9e972c248
6 changed files with 103 additions and 94 deletions

View File

@@ -766,7 +766,7 @@ class RestTemplateTests {
given(request.getHeaders()).willReturn(requestHeaders);
}
@SuppressWarnings("deprecation")
@SuppressWarnings({ "deprecation", "removal" })
private void mockResponseStatus(HttpStatus responseStatus) throws Exception {
given(request.execute()).willReturn(response);
given(errorHandler.hasError(response)).willReturn(responseStatus.isError());