public void testCollapse() { myTree.expandPath(myChildAPath); myTree.expandPath(myChild2Path); checkExpanded(myChild2Path); myTree.setSelectionPath(myChild2Path); TreeExpandCollapse.collapse(myTree); checkCollapsed(myChild2Path); checkExpanded(myChildAPath); }
public void testCollapseWithoutSelection() { myTree.clearSelection(); TreeExpandCollapse.collapse(myTree); }