11 |
|
|
12 |
|
public class TreeSubSetTest 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(TreeSubSetTest.class); |
175 |
|
shouldThrow(); |
176 |
|
} catch (NullPointerException success) {} |
177 |
|
} |
178 |
+ |
|
179 |
|
/** |
180 |
|
* addAll of a collection with null elements throws NPE |
181 |
|
*/ |
187 |
|
shouldThrow(); |
188 |
|
} catch (NullPointerException success) {} |
189 |
|
} |
190 |
+ |
|
191 |
|
/** |
192 |
|
* addAll of a collection with any null elements throws NPE after |
193 |
|
* possibly adding some elements |
447 |
|
/** |
448 |
|
* iterator.remove removes current element |
449 |
|
*/ |
450 |
< |
public void testIteratorRemove () { |
450 |
> |
public void testIteratorRemove() { |
451 |
|
final NavigableSet q = set0(); |
452 |
|
q.add(new Integer(2)); |
453 |
|
q.add(new Integer(1)); |
668 |
|
shouldThrow(); |
669 |
|
} catch (NullPointerException success) {} |
670 |
|
} |
671 |
+ |
|
672 |
|
/** |
673 |
|
* addAll of a collection with null elements throws NPE |
674 |
|
*/ |
680 |
|
shouldThrow(); |
681 |
|
} catch (NullPointerException success) {} |
682 |
|
} |
683 |
+ |
|
684 |
|
/** |
685 |
|
* addAll of a collection with any null elements throws NPE after |
686 |
|
* possibly adding some elements |
940 |
|
/** |
941 |
|
* iterator.remove removes current element |
942 |
|
*/ |
943 |
< |
public void testDescendingIteratorRemove () { |
943 |
> |
public void testDescendingIteratorRemove() { |
944 |
|
final NavigableSet q = dset0(); |
945 |
|
q.add(new Integer(2)); |
946 |
|
q.add(new Integer(1)); |