Commit dd11b8ad authored by dreis2211's avatar dreis2211 Committed by Stephane Nicoll

Fix checkstyle violation

See gh-21266
parent 1abe0f16
......@@ -49,16 +49,13 @@ class MongoReactiveDataAutoConfigurationTests {
@Test
void whenNoGridFsDatabaseIsConfiguredTheGridFsTemplateUsesTheMainDatabase() {
this.contextRunner.run((context) -> {
assertThat(grisFsTemplateDatabaseName(context)).isEqualTo("test");
});
this.contextRunner.run((context) -> assertThat(grisFsTemplateDatabaseName(context)).isEqualTo("test"));
}
@Test
void whenGridFsDatabaseIsConfiguredThenGridFsTemplateUsesIt() {
this.contextRunner.withPropertyValues("spring.data.mongodb.gridFsDatabase:grid").run((context) -> {
assertThat(grisFsTemplateDatabaseName(context)).isEqualTo("grid");
});
this.contextRunner.withPropertyValues("spring.data.mongodb.gridFsDatabase:grid")
.run((context) -> assertThat(grisFsTemplateDatabaseName(context)).isEqualTo("grid"));
}
@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment