OctTreeNode extends AbstractTreeNode<D, N> { @Pure @Override public int getNotNullChildCount() { return this.notNullChildCount; } OctTreeNode();  OctTreeNode(Collection<D> data);  OctTreeNode(D data);  OctTreeNode(boolean useLinkedList);  OctTreeNode(boolean useLinkedList, boolean copyDataCollection, List<D> data);  OctTreeNode(boolean useLinkedList, D data); @Pure @Override Class<? extends Enum<?>> getPartitionEnumeration(); @Override @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:magicnumber"}) void clear(); @Pure @Override @SuppressWarnings("checkstyle:magicnumber") int getChildCount(); @Pure @Override int getNotNullChildCount(); @Pure @Override @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:returncount", "checkstyle:magicnumber"}) int indexOf(N child); @Pure final OctTreeZone zoneOf(N child); @Pure @Override @SuppressWarnings({"checkstyle:returncount", "checkstyle:magicnumber"}) N getChildAt(int index); @Pure final N getChildAt(OctTreeZone zone); @Override boolean moveTo(N newParent, int index); boolean moveTo(N newParent, OctTreeZone zone); @Override @SuppressWarnings({"checkstyle:returncount", "checkstyle:magicnumber"}) boolean setChildAt(int index, N newChild); final boolean setChildAt(OctTreeZone zone, N newChild); @Override @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:returncount", "checkstyle:cyclomaticcomplexity"}) boolean removeChild(N child); @Pure @Override @SuppressWarnings("checkstyle:booleanexpressioncomplexity") boolean isLeaf(); @Override @SuppressWarnings({"checkstyle:magicnumber", "checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) void getChildren(Object[] array); @Override @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) int getMinHeight(); @Pure @Override @SuppressWarnings({"checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) int getMaxHeight();  }
@Test public void getNotNullChildCount() { assertEquals(2, this.root.getNotNullChildCount()); assertEquals(1, this.child1.getNotNullChildCount()); assertEquals(0, this.child2.getNotNullChildCount()); assertEquals(0, this.node.getNotNullChildCount()); }