void () { myTree.expandPath(new TreePath(myRoot)); myTree.collapsePath(myChildAPath); myTree.collapsePath(myChildBPath); myTree.setSelectionPath(myChildAPath); TreeExpandCollapse.expandAll(myTree); checkExpanded(myChildAPath); checkCollapsed(myChildBPath); }