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