NodeItemTest: ensure that when a child is removed from it's parent its parent is removed

This commit is contained in:
Paul Campbell 2016-05-26 13:11:51 +01:00
parent d3b8fa721b
commit 136bc0b4ba

View file

@ -878,6 +878,7 @@ public class NodeItemTest {
node.removeChild(child); node.removeChild(child);
//then //then
assertThat(node.getChildren()).isEmpty(); assertThat(node.getChildren()).isEmpty();
assertThat(child.getParent()).isEmpty();
} }
@Test @Test