Add create static factory method to WebClientAdapter

Closes gh-31120
This commit is contained in:
rstoyanchev
2023-08-30 16:37:13 +01:00
parent dc7179c528
commit 32f128b6ba
3 changed files with 15 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ public class WebClientAdapterTests {
}
private Service initService(WebClient webClient) {
WebClientAdapter adapter = WebClientAdapter.forClient(webClient);
WebClientAdapter adapter = WebClientAdapter.create(webClient);
return HttpServiceProxyFactory.builderFor(adapter).build().createClient(Service.class);
}

View File

@@ -128,7 +128,7 @@ class KotlinWebClientHttpServiceProxyTests {
}
private fun initHttpService(webClient: WebClient): TestHttpService {
val adapter = WebClientAdapter.forClient(webClient)
val adapter = WebClientAdapter.create(webClient)
return HttpServiceProxyFactory.builderFor(adapter).build().createClient()
}