Add create static factory method to WebClientAdapter
Closes gh-31120
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user