void () { TreePath rootPath = collapseRoot(); myTree.setSelectionPath(rootPath); TreeExpandCollapse.expandAll(myTree); checkExpanded(rootPath); checkExpanded(myChildAPath); checkExpanded(myChild2Path); }