ConstantNaryTreeNode extends AbstractTreeNode<D, N> { @Pure @Override public final int getChildCount() { return this.children.length; } ConstantNaryTreeNode(int childCount);  ConstantNaryTreeNode(int childCount, Collection<D> data);  ConstantNaryTreeNode(int childCount, D data);  ConstantNaryTreeNode(int childCount, boolean useLinkedList);  ConstantNaryTreeNode(int childCount, boolean useLinkedList, boolean copyDataCollection, List<D> data);  ConstantNaryTreeNode(int childCount, boolean useLinkedList, D data); @Pure @Override Class<? extends Enum<?>> getPartitionEnumeration(); @Override void clear(); @Pure @Override final int getChildCount(); @Pure @Override int getNotNullChildCount(); @Pure @Override final int indexOf(N child); @Pure @Override final N getChildAt(int index); @Override boolean moveTo(N newParent, int index); @Override boolean setChildAt(int index, N newChild); @Override final boolean removeChild(N child); @Pure @Override final boolean isLeaf(); @Override void getChildren(Object[] array); @Pure @Override int getMinHeight(); @Pure @Override int getMaxHeight();  }
@Test public void getChildCount() { assertEquals(5, this.root.getChildCount()); assertEquals(5, this.child1.getChildCount()); assertEquals(5, this.child2.getChildCount()); assertEquals(5, this.node.getChildCount()); }