diff --git a/pom.xml b/pom.xml index 16a8956d..0b6bfe18 100644 --- a/pom.xml +++ b/pom.xml @@ -70,7 +70,7 @@ UTF-8 1.8 - 3.15.0 + 3.18.0 0.2.2.RELEASE 1.2.2 1.2.3 @@ -79,14 +79,14 @@ 2.11.2 spring.hateoas 2.4.0 - 5.6.2 - 2020.0.0-M2 + 5.7.0 + 2020.0.0 1.7.30 - 5.3.0-RC1 + 5.3.0 2.0.0.RELEASE - 1.4.0-rc - 1.3.8-1.4.0-rc - 1.10.0 + 1.4.10 + 1.4.0 + 1.10.2 @@ -95,7 +95,7 @@ spring-next 2020.0.0-SNAPSHOT - 5.3.0-SNAPSHOT + 5.3.1-SNAPSHOT diff --git a/src/test/java/org/springframework/hateoas/config/HypermediaWebTestClientConfigurerTest.java b/src/test/java/org/springframework/hateoas/config/HypermediaWebTestClientConfigurerTest.java index 41b1bb01..f413b0db 100644 --- a/src/test/java/org/springframework/hateoas/config/HypermediaWebTestClientConfigurerTest.java +++ b/src/test/java/org/springframework/hateoas/config/HypermediaWebTestClientConfigurerTest.java @@ -24,7 +24,6 @@ import org.springframework.test.util.ReflectionTestUtils; import org.springframework.test.web.reactive.server.WebTestClient; import org.springframework.web.reactive.config.EnableWebFlux; import org.springframework.web.reactive.function.client.ExchangeStrategies; -import org.springframework.web.reactive.function.client.WebClient; public class HypermediaWebTestClientConfigurerTest { @@ -118,12 +117,12 @@ public class HypermediaWebTestClientConfigurerTest { * @param webTestClient * @return */ + @SuppressWarnings("null") private static ExchangeStrategies exchangeStrategies(WebTestClient webTestClient) { - WebClient webClient = (WebClient) ReflectionTestUtils.getField(webTestClient, "webClient"); + Object exchangeFunction = ReflectionTestUtils.getField(webTestClient, "exchangeFunction"); - return (ExchangeStrategies) ReflectionTestUtils - .getField(ReflectionTestUtils.getField(webClient, "exchangeFunction"), "strategies"); + return (ExchangeStrategies) ReflectionTestUtils.getField(exchangeFunction, "strategies"); } @Configuration