diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfigurationTests.java index e3b36b53b9..1f6279b129 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfigurationTests.java @@ -139,8 +139,7 @@ public class MongoDataAutoConfigurationTests { .run((context) -> { MongoMappingContext mappingContext = context .getBean(MongoMappingContext.class); - assertThat(mappingContext.isAutoIndexCreation()) - .isEqualTo(Boolean.FALSE); + assertThat(mappingContext.isAutoIndexCreation()).isFalse(); }); } diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/MongoPropertiesTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/MongoPropertiesTests.java index e75152bf4d..7024dcd4e3 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/MongoPropertiesTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mongo/MongoPropertiesTests.java @@ -164,7 +164,7 @@ public class MongoPropertiesTests { context.register(Config.class); context.refresh(); MongoProperties properties = context.getBean(MongoProperties.class); - assertThat(properties.isAutoIndexCreation()).isEqualTo(Boolean.TRUE); + assertThat(properties.isAutoIndexCreation()).isTrue(); } private void assertServerAddress(ServerAddress serverAddress, String expectedHost,