()
| 470 | * iterator iterates through all elements |
| 471 | */ |
| 472 | public void testIterator() { |
| 473 | NavigableSet q = populatedSet(SIZE); |
| 474 | int i = 0; |
| 475 | Iterator it = q.iterator(); |
| 476 | while (it.hasNext()) { |
| 477 | assertTrue(q.contains(it.next())); |
| 478 | ++i; |
| 479 | } |
| 480 | assertEquals(i, SIZE); |
| 481 | } |
| 482 | |
| 483 | /* |
| 484 | * iterator of empty set has no elements |
nothing calls this directly
no test coverage detected