()
| 114 | * size changes when elements added and removed |
| 115 | */ |
| 116 | public void testSize() { |
| 117 | NavigableSet q = populatedSet(SIZE); |
| 118 | for (int i = 0; i < SIZE; ++i) { |
| 119 | assertEquals(SIZE-i, q.size()); |
| 120 | q.pollFirst(); |
| 121 | } |
| 122 | for (int i = 0; i < SIZE; ++i) { |
| 123 | assertEquals(i, q.size()); |
| 124 | q.add(new Integer(i)); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | /* |
| 129 | * add(null) throws NPE |
nothing calls this directly
no test coverage detected