11 |
|
|
12 |
|
public class ConcurrentSkipListSetTest extends JSR166TestCase { |
13 |
|
public static void main(String[] args) { |
14 |
< |
junit.textui.TestRunner.run (suite()); |
14 |
> |
junit.textui.TestRunner.run(suite()); |
15 |
|
} |
16 |
|
public static Test suite() { |
17 |
|
return new TestSuite(ConcurrentSkipListSetTest.class); |
203 |
|
shouldThrow(); |
204 |
|
} catch (NullPointerException success) {} |
205 |
|
} |
206 |
+ |
|
207 |
|
/** |
208 |
|
* addAll of a collection with null elements throws NPE |
209 |
|
*/ |
215 |
|
shouldThrow(); |
216 |
|
} catch (NullPointerException success) {} |
217 |
|
} |
218 |
+ |
|
219 |
|
/** |
220 |
|
* addAll of a collection with any null elements throws NPE after |
221 |
|
* possibly adding some elements |
487 |
|
/** |
488 |
|
* iterator.remove removes current element |
489 |
|
*/ |
490 |
< |
public void testIteratorRemove () { |
490 |
> |
public void testIteratorRemove() { |
491 |
|
final ConcurrentSkipListSet q = new ConcurrentSkipListSet(); |
492 |
|
q.add(new Integer(2)); |
493 |
|
q.add(new Integer(1)); |