From 136bc0b4babdff6f5e9a8cc2b472bcefe883a7d1 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 26 May 2016 13:11:51 +0100 Subject: [PATCH] NodeItemTest: ensure that when a child is removed from it's parent its parent is removed --- src/test/java/net/kemitix/node/NodeItemTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/net/kemitix/node/NodeItemTest.java b/src/test/java/net/kemitix/node/NodeItemTest.java index 277b81a..283b042 100644 --- a/src/test/java/net/kemitix/node/NodeItemTest.java +++ b/src/test/java/net/kemitix/node/NodeItemTest.java @@ -878,6 +878,7 @@ public class NodeItemTest { node.removeChild(child); //then assertThat(node.getChildren()).isEmpty(); + assertThat(child.getParent()).isEmpty(); } @Test