Merge branch '6.0.x'
This commit is contained in:
@@ -701,18 +701,6 @@ class RestClientIntegrationTests {
|
||||
}
|
||||
|
||||
|
||||
@ParameterizedRestClientTest
|
||||
void invalidDomain(ClientHttpRequestFactory requestFactory) {
|
||||
startServer(requestFactory);
|
||||
|
||||
String url = "http://example.invalid";
|
||||
assertThatExceptionOfType(ResourceAccessException.class).isThrownBy(() ->
|
||||
this.restClient.get().uri(url).retrieve().toBodilessEntity()
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void prepareResponse(Consumer<MockResponse> consumer) {
|
||||
MockResponse response = new MockResponse();
|
||||
consumer.accept(response);
|
||||
|
||||
Reference in New Issue
Block a user