Add ClientResponse::createException
This commit adds the createException() method to ClientResponse, returning a delayed WebClientResponseException based on the status code, headers, and body as well as the corresponding request. Closes gh-22825
This commit is contained in:
@@ -69,7 +69,7 @@ public class DefaultClientResponseTests {
|
||||
public void createMocks() {
|
||||
mockResponse = mock(ClientHttpResponse.class);
|
||||
mockExchangeStrategies = mock(ExchangeStrategies.class);
|
||||
defaultClientResponse = new DefaultClientResponse(mockResponse, mockExchangeStrategies, "", "");
|
||||
defaultClientResponse = new DefaultClientResponse(mockResponse, mockExchangeStrategies, "", "", () -> null);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user