14 |
|
public class ConcurrentLinkedQueueTest extends JSR166TestCase { |
15 |
|
|
16 |
|
public static void main(String[] args) { |
17 |
< |
junit.textui.TestRunner.run (suite()); |
17 |
> |
junit.textui.TestRunner.run(suite()); |
18 |
|
} |
19 |
|
|
20 |
|
public static Test suite() { |
193 |
|
shouldThrow(); |
194 |
|
} catch (NullPointerException success) {} |
195 |
|
} |
196 |
+ |
|
197 |
|
/** |
198 |
< |
* addAll of a collection with any null elements throws NPE after |
198 |
> |
* addAll of a collection with any null elements throws NPE after |
199 |
|
* possibly adding some elements |
200 |
|
*/ |
201 |
|
public void testAddAll3() { |
447 |
|
/** |
448 |
|
* Modifications do not cause iterators to fail |
449 |
|
*/ |
450 |
< |
public void testWeaklyConsistentIteration () { |
450 |
> |
public void testWeaklyConsistentIteration() { |
451 |
|
final ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); |
452 |
|
q.add(one); |
453 |
|
q.add(two); |
464 |
|
/** |
465 |
|
* iterator.remove removes current element |
466 |
|
*/ |
467 |
< |
public void testIteratorRemove () { |
467 |
> |
public void testIteratorRemove() { |
468 |
|
final ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(); |
469 |
|
q.add(one); |
470 |
|
q.add(two); |