Suppress deprecation warnings in tests

This commit is contained in:
Sam Brannen
2022-10-18 14:21:57 +02:00
parent b2cf2b9d48
commit bfdf070232
3 changed files with 3 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ public class HttpMethodArgumentResolverTests {
@BeforeEach
@SuppressWarnings("deprecation")
void setUp() throws Exception {
HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client).build();
proxyFactory.afterPropertiesSet();

View File

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

View File

@@ -60,6 +60,7 @@ class NamedValueArgumentResolverTests {
@BeforeEach
@SuppressWarnings("deprecation")
void setUp() throws Exception {
HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.client)
.customArgumentResolver(this.argumentResolver)