From dd11b8adba6226e5be30944b4c8c8d42eaf12430 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Thu, 30 Apr 2020 12:20:52 +0200 Subject: [PATCH] Fix checkstyle violation See gh-21266 --- .../mongo/MongoReactiveDataAutoConfigurationTests.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfigurationTests.java index de2c3fe586..adea52ebda 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfigurationTests.java @@ -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