diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java index 03d8186dff22..0cb7d51d5d02 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java @@ -38,7 +38,7 @@ void flatWhenIncludeFalseDoesNothing() { ContextPairs contextPairs = new ContextPairs(false, null); Map map = Map.of("spring", "boot"); Map actual = apply(contextPairs.flat(".", (pairs) -> pairs.addMapEntries((item) -> map))); - assertThat(actual.isEmpty()); + assertThat(actual).isEmpty(); } @Test @@ -96,7 +96,7 @@ void nestedWhenIncludeFalseDoesNothing() { ContextPairs contextPairs = new ContextPairs(false, null); Map map = Map.of("spring", "boot"); Map actual = apply(contextPairs.nested((pairs) -> pairs.addMapEntries((item) -> map))); - assertThat(actual.isEmpty()); + assertThat(actual).isEmpty(); } @Test