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 03d8186dff2..0cb7d51d5d0 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 @@ class ContextPairsTests { 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 @@ class ContextPairsTests { 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