add methods

This commit is contained in:
huangchengxing
2022-07-13 09:06:31 +08:00
parent 72b9741928
commit 6ca36ec059
2 changed files with 20 additions and 0 deletions

View File

@@ -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);