3536373839404142434445
assertEquals(true, t.isValidTree()); Node[] nodelist = new Node[t.getNodeCount()]; Iterator nodes = t.nodes(); for ( int i=0; nodes.hasNext(); ++i ) { nodelist[i] = (Node)nodes.next(); } assertEquals(false, nodes.hasNext()); }