Merge pull request #16575 from izeye

* pr/16575:
  Polish
pull/15965/head
Stephane Nicoll 6 years ago
commit 81f41b607a

@ -139,8 +139,7 @@ public class MongoDataAutoConfigurationTests {
.run((context) -> { .run((context) -> {
MongoMappingContext mappingContext = context MongoMappingContext mappingContext = context
.getBean(MongoMappingContext.class); .getBean(MongoMappingContext.class);
assertThat(mappingContext.isAutoIndexCreation()) assertThat(mappingContext.isAutoIndexCreation()).isFalse();
.isEqualTo(Boolean.FALSE);
}); });
} }

@ -164,7 +164,7 @@ public class MongoPropertiesTests {
context.register(Config.class); context.register(Config.class);
context.refresh(); context.refresh();
MongoProperties properties = context.getBean(MongoProperties.class); MongoProperties properties = context.getBean(MongoProperties.class);
assertThat(properties.isAutoIndexCreation()).isEqualTo(Boolean.TRUE); assertThat(properties.isAutoIndexCreation()).isTrue();
} }
private void assertServerAddress(ServerAddress serverAddress, String expectedHost, private void assertServerAddress(ServerAddress serverAddress, String expectedHost,

Loading…
Cancel
Save