11 |
|
|
12 |
|
public class ConcurrentSkipListSubSetTest 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(ConcurrentSkipListSubSetTest.class); |
178 |
|
shouldThrow(); |
179 |
|
} catch (NullPointerException success) {} |
180 |
|
} |
181 |
+ |
|
182 |
|
/** |
183 |
|
* addAll of a collection with null elements throws NPE |
184 |
|
*/ |
190 |
|
shouldThrow(); |
191 |
|
} catch (NullPointerException success) {} |
192 |
|
} |
193 |
+ |
|
194 |
|
/** |
195 |
|
* addAll of a collection with any null elements throws NPE after |
196 |
|
* possibly adding some elements |
450 |
|
/** |
451 |
|
* iterator.remove removes current element |
452 |
|
*/ |
453 |
< |
public void testIteratorRemove () { |
453 |
> |
public void testIteratorRemove() { |
454 |
|
final NavigableSet q = set0(); |
455 |
|
q.add(new Integer(2)); |
456 |
|
q.add(new Integer(1)); |
682 |
|
shouldThrow(); |
683 |
|
} catch (NullPointerException success) {} |
684 |
|
} |
685 |
+ |
|
686 |
|
/** |
687 |
|
* addAll of a collection with null elements throws NPE |
688 |
|
*/ |
694 |
|
shouldThrow(); |
695 |
|
} catch (NullPointerException success) {} |
696 |
|
} |
697 |
+ |
|
698 |
|
/** |
699 |
|
* addAll of a collection with any null elements throws NPE after |
700 |
|
* possibly adding some elements |
954 |
|
/** |
955 |
|
* iterator.remove removes current element |
956 |
|
*/ |
957 |
< |
public void testDescendingIteratorRemove () { |
957 |
> |
public void testDescendingIteratorRemove() { |
958 |
|
final NavigableSet q = dset0(); |
959 |
|
q.add(new Integer(2)); |
960 |
|
q.add(new Integer(1)); |