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) -> {
MongoMappingContext mappingContext = context
.getBean(MongoMappingContext.class);
assertThat(mappingContext.isAutoIndexCreation())
.isEqualTo(Boolean.FALSE);
assertThat(mappingContext.isAutoIndexCreation()).isFalse();
});
}

@ -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,

Loading…
Cancel
Save