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:
committed by
rstoyanchev
parent
3be4c0a893
commit
068dc7db28
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user