NodeItemTest: ensure that when a child is removed from it's parent its parent is removed
This commit is contained in:
parent
d3b8fa721b
commit
136bc0b4ba
1 changed files with 1 additions and 0 deletions
|
@ -878,6 +878,7 @@ public class NodeItemTest {
|
|||
node.removeChild(child);
|
||||
//then
|
||||
assertThat(node.getChildren()).isEmpty();
|
||||
assertThat(child.getParent()).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue