Remove deprecated methods in HttpServiceProxyFactory

This commit is contained in:
rstoyanchev
2022-11-07 16:57:07 +00:00
parent a2ac764f9c
commit aeb35663d4
7 changed files with 72 additions and 595 deletions

View File

@@ -42,10 +42,8 @@ public class HttpMethodArgumentResolverTests {
@BeforeEach
@SuppressWarnings("deprecation")
void setUp() throws Exception {
HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client).build();
proxyFactory.afterPropertiesSet();
this.service = proxyFactory.createClient(Service.class);
}

View File

@@ -63,10 +63,8 @@ public class HttpServiceMethodTests {
@BeforeEach
@SuppressWarnings("deprecation")
void setUp() throws Exception {
this.proxyFactory = HttpServiceProxyFactory.builder(this.client).build();
this.proxyFactory.afterPropertiesSet();
}

View File

@@ -60,12 +60,10 @@ class NamedValueArgumentResolverTests {
@BeforeEach
@SuppressWarnings("deprecation")
void setUp() throws Exception {
HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client)
.customArgumentResolver(this.argumentResolver)
.build();
proxyFactory.afterPropertiesSet();
this.service = proxyFactory.createClient(Service.class);
}

View File

@@ -40,10 +40,8 @@ class PathVariableArgumentResolverTests {
@BeforeEach
@SuppressWarnings("deprecation")
void setUp() throws Exception {
HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client).build();
proxyFactory.afterPropertiesSet();
this.service = proxyFactory.createClient(Service.class);
}