()
| 255 | * contains(x) reports true when elements added but not yet removed |
| 256 | */ |
| 257 | public void testContains() { |
| 258 | NavigableSet q = populatedSet(SIZE); |
| 259 | for (int i = 0; i < SIZE; ++i) { |
| 260 | assertTrue(q.contains(new Integer(i))); |
| 261 | q.pollFirst(); |
| 262 | assertFalse(q.contains(new Integer(i))); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | /* |
| 267 | * clear removes all elements |
nothing calls this directly
no test coverage detected