mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-29 13:39:16 +00:00
Merge pull request #46160 from ngocnhan-tran1996
* pr/46160: Adapt tests to run assertions on map in ContextPairsTests Closes gh-46160
This commit is contained in:
+2
-2
@@ -38,7 +38,7 @@ class ContextPairsTests {
|
||||
ContextPairs contextPairs = new ContextPairs(false, null);
|
||||
Map<String, String> map = Map.of("spring", "boot");
|
||||
Map<String, Object> 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<String, String> map = Map.of("spring", "boot");
|
||||
Map<String, Object> actual = apply(contextPairs.nested((pairs) -> pairs.addMapEntries((item) -> map)));
|
||||
assertThat(actual.isEmpty());
|
||||
assertThat(actual).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user