mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add methods
This commit is contained in:
@@ -142,6 +142,14 @@ public class LinkedForestMapTest {
|
||||
Assert.assertFalse(c.hasChildren());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getNodeValueTest() {
|
||||
final ForestMap<String, String> map = new LinkedForestMap<>(false);
|
||||
map.putNode("a", "aaa");
|
||||
Assert.assertEquals("aaa", map.getNodeValue("a"));
|
||||
Assert.assertNull(map.getNodeValue("b"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void putAllNodeTest() {
|
||||
final ForestMap<String, Map<String, String>> map = new LinkedForestMap<>(false);
|
||||
|
Reference in New Issue
Block a user