Remove use of TestHttpClientAdapter

Now that HttpClientAdapter is deprecated and replaced by HttpExchangeAdapter
and ReactorHttpExchangeAdapter, our tests should use the new contracts.

See gh-30117
This commit is contained in:
Rossen Stoyanchev
2023-07-10 10:36:16 +01:00
committed by rstoyanchev
parent 3be4c0a893
commit 068dc7db28
22 changed files with 222 additions and 362 deletions

View File

@@ -163,10 +163,8 @@ public class WebClientHttpServiceProxyTests {
}
private TestHttpService initHttpService(WebClient webClient) {
return HttpServiceProxyFactory.builder()
.clientAdapter(WebClientAdapter.forClient(webClient))
.build()
.createClient(TestHttpService.class);
WebClientAdapter adapter = WebClientAdapter.forClient(webClient);
return HttpServiceProxyFactory.builderFor(adapter).build().createClient(TestHttpService.class);
}
private void prepareResponse(Consumer<MockResponse> consumer) {