12 |
|
|
13 |
|
public class LinkedListTest extends JSR166TestCase { |
14 |
|
public static void main(String[] args) { |
15 |
< |
junit.textui.TestRunner.run (suite()); |
15 |
> |
junit.textui.TestRunner.run(suite()); |
16 |
|
} |
17 |
|
|
18 |
|
public static Test suite() { |
353 |
|
} |
354 |
|
|
355 |
|
/** |
356 |
< |
* toArray with incompatable aray type throws CCE |
356 |
> |
* toArray with incompatible array type throws CCE |
357 |
|
*/ |
358 |
|
public void testToArray1_BadArg() { |
359 |
|
LinkedList l = new LinkedList(); |
397 |
|
/** |
398 |
|
* iterator.remove removes current element |
399 |
|
*/ |
400 |
< |
public void testIteratorRemove () { |
400 |
> |
public void testIteratorRemove() { |
401 |
|
final LinkedList q = new LinkedList(); |
402 |
|
q.add(new Integer(1)); |
403 |
|
q.add(new Integer(2)); |
449 |
|
/** |
450 |
|
* descendingIterator.remove removes current element |
451 |
|
*/ |
452 |
< |
public void testDescendingIteratorRemove () { |
452 |
> |
public void testDescendingIteratorRemove() { |
453 |
|
final LinkedList q = new LinkedList(); |
454 |
|
q.add(three); |
455 |
|
q.add(two); |