void () { collapseRoot(); addChildren(500, myChild2); addChildren(500, myChildA); addChildren(500, myChildB); myTree.setSelectionPath(new TreePath(myRoot)); TreeExpandCollapse.expandAll(myTree); checkExpanded(new TreePath(myRoot)); checkExpanded(myChildAPath); checkExpanded(myChildBPath); checkExpanded(myChild2Path); }