Skip to content

Commit af0e7ac

Browse files
ngocnhan-tran1996snicoll
authored andcommitted
Adapt tests to run assertions on map in ContextPairsTests
See gh-46160 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent 0f5650a commit af0e7ac

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured/ContextPairsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void flatWhenIncludeFalseDoesNothing() {
3838
ContextPairs contextPairs = new ContextPairs(false, null);
3939
Map<String, String> map = Map.of("spring", "boot");
4040
Map<String, Object> actual = apply(contextPairs.flat(".", (pairs) -> pairs.addMapEntries((item) -> map)));
41-
assertThat(actual.isEmpty());
41+
assertThat(actual).isEmpty();
4242
}
4343

4444
@Test
@@ -96,7 +96,7 @@ void nestedWhenIncludeFalseDoesNothing() {
9696
ContextPairs contextPairs = new ContextPairs(false, null);
9797
Map<String, String> map = Map.of("spring", "boot");
9898
Map<String, Object> actual = apply(contextPairs.nested((pairs) -> pairs.addMapEntries((item) -> map)));
99-
assertThat(actual.isEmpty());
99+
assertThat(actual).isEmpty();
100100
}
101101

102102
@Test

0 commit comments

Comments
 (0)