Skip to content

Commit 6ccbf0b

Browse files
committed
Update PropertiesUtilsTest.java
1 parent f913c87 commit 6ccbf0b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

microsphere-java-core/src/test/java/io/microsphere/collection/PropertiesUtilsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import static io.microsphere.collection.MapUtils.ofMap;
2424
import static io.microsphere.collection.PropertiesUtils.flatProperties;
25+
import static java.util.Collections.emptyList;
2526
import static java.util.Collections.emptyMap;
2627
import static org.junit.jupiter.api.Assertions.assertEquals;
2728
import static org.junit.jupiter.api.Assertions.assertNull;
@@ -39,7 +40,7 @@ public class PropertiesUtilsTest {
3940
public void testFlatProperties() {
4041
Map<String, Object> level3Properties = ofMap("f", "F");
4142
Map<String, Object> level2Properties = ofMap("c", "C", "d", level3Properties);
42-
Map<String, Object> properties = ofMap("a", "A", "b", level2Properties);
43+
Map<String, Object> properties = ofMap("a", "A", "b", level2Properties, "z", emptyList());
4344
Map<String, Object> flattenProperties = flatProperties(properties);
4445
assertEquals("A", flattenProperties.get("a"));
4546
assertEquals("C", flattenProperties.get("b.c"));

0 commit comments

Comments
 (0)