diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-09-09 15:52:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-09 15:52:32 +0000 |
commit | 25092b22c03c748c2c444444b9590f3304958d2e (patch) | |
tree | 7061a9178ade1951cb21161967a932924bdfa886 /vid-app-common | |
parent | 0f2d7dbe3fc557dbdb786901c9ea2bd3b417c973 (diff) | |
parent | 919286bf60bb1feb4b3e6ea74f5bc8e6de44fef6 (diff) |
Merge "add UT to TreeTest"
Diffstat (limited to 'vid-app-common')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/utils/TreeTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/utils/TreeTest.java b/vid-app-common/src/test/java/org/onap/vid/utils/TreeTest.java index eaa9990c2..9b27f6e23 100644 --- a/vid-app-common/src/test/java/org/onap/vid/utils/TreeTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/utils/TreeTest.java @@ -80,4 +80,12 @@ public class TreeTest { assertTrue(subTree.isPathExist("d")); assertFalse(subTree.isPathExist("b","c","d")); } + + @Test + public void getChildrenDepthTest() { + Tree<String> tree = buildTreeForTest(); + assertEquals(3, tree.getChildrenDepth()); + Tree<String> subTree = tree.getSubTree("b"); + assertEquals(2, subTree.getChildrenDepth()); + } } |