From 919286bf60bb1feb4b3e6ea74f5bc8e6de44fef6 Mon Sep 17 00:00:00 2001 From: "Weiss, Sara (sw793d)" Date: Mon, 9 Sep 2019 08:02:31 +0300 Subject: add UT to TreeTest Issue-ID: VID-378 Signed-off-by: Sara Weiss Change-Id: I8ed151cc32c7f71f929846b41ab8388e5f2f69f5 --- vid-app-common/src/test/java/org/onap/vid/utils/TreeTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vid-app-common/src/test/java') 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 tree = buildTreeForTest(); + assertEquals(3, tree.getChildrenDepth()); + Tree subTree = tree.getSubTree("b"); + assertEquals(2, subTree.getChildrenDepth()); + } } -- cgit 1.2.3-korg