Polishing
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user