|
|
|
|
@ -58,7 +58,7 @@ class ContextPairsTests {
@@ -58,7 +58,7 @@ class ContextPairsTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void flatWhenPrefixEndingWithDelimeterAppliesPrefix() { |
|
|
|
|
void flatWhenPrefixEndingWithDelimiterAppliesPrefix() { |
|
|
|
|
ContextPairs contextPairs = new ContextPairs(true, "the_"); |
|
|
|
|
Map<String, String> map = Map.of("spring", "boot"); |
|
|
|
|
Map<String, Object> actual = apply(contextPairs.flat("_", (pairs) -> pairs.addMapEntries((item) -> map))); |
|
|
|
|
@ -66,7 +66,7 @@ class ContextPairsTests {
@@ -66,7 +66,7 @@ class ContextPairsTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void flatWhenPrefixAndNameStartingWithDelimeterAppliesPrefix() { |
|
|
|
|
void flatWhenPrefixAndNameStartingWithDelimiterAppliesPrefix() { |
|
|
|
|
ContextPairs contextPairs = new ContextPairs(true, "the"); |
|
|
|
|
Map<String, String> map = Map.of("_spring", "boot"); |
|
|
|
|
Map<String, Object> actual = apply(contextPairs.flat("_", (pairs) -> pairs.addMapEntries((item) -> map))); |
|
|
|
|
|