()
| 342 | * retainAll(c) retains only those elements of c and reports true if changed |
| 343 | */ |
| 344 | public void testRetainAll() { |
| 345 | NavigableSet q = populatedSet(SIZE); |
| 346 | NavigableSet p = populatedSet(SIZE); |
| 347 | for (int i = 0; i < SIZE; ++i) { |
| 348 | boolean changed = q.retainAll(p); |
| 349 | if (i == 0) |
| 350 | assertFalse(changed); |
| 351 | else |
| 352 | assertTrue(changed); |
| 353 | |
| 354 | assertTrue(q.containsAll(p)); |
| 355 | assertEquals(SIZE-i, q.size()); |
| 356 | p.pollFirst(); |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | /* |
| 361 | * removeAll(c) removes only those elements of c and reports true if changed |
nothing calls this directly
no test coverage detected