()
| 149 | * size changes when elements added and removed |
| 150 | */ |
| 151 | public void testSize() { |
| 152 | NavigableSet q = populatedSet(SIZE); |
| 153 | for (int i = 0; i < SIZE; ++i) { |
| 154 | assertEquals(SIZE-i, q.size()); |
| 155 | q.pollFirst(); |
| 156 | } |
| 157 | for (int i = 0; i < SIZE; ++i) { |
| 158 | assertEquals(i, q.size()); |
| 159 | q.add(new Integer(i)); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /* |
| 164 | * add(null) throws NPE |
nothing calls this directly
no test coverage detected