AbstractTreeForTreeLayout implements
		TreeForTreeLayout<TreeNode> { abstract public List<TreeNode> getChildrenList(TreeNode node); AbstractTreeForTreeLayout(TreeNode root); abstract TreeNode getParent(TreeNode node); abstract List<TreeNode> getChildrenList(TreeNode node); @Override TreeNode getRoot(); @Override boolean isLeaf(TreeNode node); @Override boolean isChildOfParent(TreeNode node, TreeNode parentNode); @Override Iterable<TreeNode> getChildren(TreeNode node); @Override Iterable<TreeNode> getChildrenReverse(TreeNode node); @Override TreeNode getFirstChild(TreeNode parentNode); @Override TreeNode getLastChild(TreeNode parentNode);  }
@Test public void testGetChildrenList() throws Exception { List<StringTreeNode> children = tree.getChildrenList(root); assertEquals(2, children.size()); assertEquals(n1, children.get(0)); assertEquals(n2, children.get(1)); }
@Test public void testGetChildrenList_leaf() throws Exception { List<StringTreeNode> children = tree.getChildrenList(n1); assertEquals(0, children.size()); }