diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfigurationTests.java index 6118c5b7e6..63d3c8676c 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfigurationTests.java @@ -24,6 +24,7 @@ import java.util.concurrent.TimeUnit; import javax.validation.ValidatorFactory; +import org.assertj.core.api.Assertions; import org.joda.time.DateTime; import org.junit.Test; @@ -418,6 +419,7 @@ public class WebFluxAutoConfigurationTests { assertThat(handlerMap).hasSize(2); for (Object handler : handlerMap.values()) { if (handler instanceof ResourceWebHandler) { + Assertions.setExtractBareNamePropertyMethods(false); assertThat(((ResourceWebHandler) handler).getCacheControl()) .isEqualToComparingFieldByField( CacheControl.maxAge(5, TimeUnit.SECONDS)); @@ -436,6 +438,7 @@ public class WebFluxAutoConfigurationTests { assertThat(handlerMap).hasSize(2); for (Object handler : handlerMap.values()) { if (handler instanceof ResourceWebHandler) { + Assertions.setExtractBareNamePropertyMethods(false); assertThat(((ResourceWebHandler) handler).getCacheControl()) .isEqualToComparingFieldByField( CacheControl.maxAge(5, TimeUnit.SECONDS)