Remove WebClientIntegrationTests#exchangeWithRelativeUrl outdated test
This test can fail when a web server runs on port 80 and
is not relevant anymore due to the removal of related feature
via 6e936a4081.
Closes gh-28902
This commit is contained in:
@@ -1091,24 +1091,6 @@ class WebClientIntegrationTests {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ParameterizedWebClientTest // SPR-15782
|
|
||||||
void exchangeWithRelativeUrl(ClientHttpConnector connector) {
|
|
||||||
startServer(connector);
|
|
||||||
|
|
||||||
String uri = "/api/v4/groups/1";
|
|
||||||
Mono<ResponseEntity<Void>> responseMono = WebClient.builder().build().get().uri(uri)
|
|
||||||
.retrieve().toBodilessEntity();
|
|
||||||
|
|
||||||
StepVerifier.create(responseMono)
|
|
||||||
.expectErrorSatisfies(throwable -> {
|
|
||||||
assertThat(throwable).isInstanceOf(WebClientRequestException.class);
|
|
||||||
WebClientRequestException ex = (WebClientRequestException) throwable;
|
|
||||||
assertThat(ex.getMethod()).isEqualTo(HttpMethod.GET);
|
|
||||||
assertThat(ex.getUri()).isEqualTo(URI.create(uri));
|
|
||||||
})
|
|
||||||
.verify(Duration.ofSeconds(5));
|
|
||||||
}
|
|
||||||
|
|
||||||
@ParameterizedWebClientTest
|
@ParameterizedWebClientTest
|
||||||
void filter(ClientHttpConnector connector) {
|
void filter(ClientHttpConnector connector) {
|
||||||
startServer(connector);
|
startServer(connector);
|
||||||
|
|||||||
Reference in New Issue
Block a user