From f928923610f9a694c43dd1f5e75d0c25ddbfd4be Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Sun, 22 Jun 2025 23:20:51 +0700 Subject: [PATCH] Update expected result for `ContextPairsTests` Signed-off-by: Tran Ngoc Nhan --- .../boot/logging/structured/ContextPairsTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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