()
| 424 | * iterator iterates through all elements |
| 425 | */ |
| 426 | public void testIterator() { |
| 427 | NavigableSet q = populatedSet(SIZE); |
| 428 | int i = 0; |
| 429 | Iterator it = q.iterator(); |
| 430 | while (it.hasNext()) { |
| 431 | assertTrue(q.contains(it.next())); |
| 432 | ++i; |
| 433 | } |
| 434 | assertEquals(i, SIZE); |
| 435 | } |
| 436 | |
| 437 | /* |
| 438 | * iterator of empty set has no elements |
nothing calls this directly
no test coverage detected