diff --git a/pom.xml b/pom.xml index 99f4123b1..9be85dfb7 100644 --- a/pom.xml +++ b/pom.xml @@ -72,7 +72,7 @@ javax.servlet javax.servlet-api - 3.0.1 + 4.0.1 provided diff --git a/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java b/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java index 6bdaa22b9..8f3b9ca0c 100644 --- a/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java +++ b/src/test/java/org/springframework/data/web/config/SpringDataWebConfigurationIntegrationTests.java @@ -32,7 +32,6 @@ import org.springframework.data.web.ProjectingJackson2HttpMessageConverter; import org.springframework.data.web.XmlBeamHttpMessageConverter; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.instrument.classloading.ShadowingClassLoader; -import org.springframework.test.util.ReflectionTestUtils; import org.springframework.util.ReflectionUtils; import org.xmlbeam.XBProjector; @@ -103,7 +102,7 @@ class SpringDataWebConfigurationIntegrationTests { // Converters contains ProjectingJackson2HttpMessageConverter with custom ObjectMapper assertThat(converters).anySatisfy(converter -> { assertThat(converter).isInstanceOfSatisfying(ProjectingJackson2HttpMessageConverter.class, __ -> { - assertThat(ReflectionTestUtils.getField(converter, "objectMapper")).isSameAs(SomeConfiguration.MAPPER); + assertThat(__.getObjectMapper()).isSameAs(SomeConfiguration.MAPPER); }); });