12 |
|
|
13 |
|
public class LinkedBlockingDequeTest 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() { |
1374 |
|
/** |
1375 |
|
* iterator.remove removes current element |
1376 |
|
*/ |
1377 |
< |
public void testIteratorRemove () { |
1377 |
> |
public void testIteratorRemove() { |
1378 |
|
final LinkedBlockingDeque q = new LinkedBlockingDeque(3); |
1379 |
|
q.add(two); |
1380 |
|
q.add(one); |
1410 |
|
/** |
1411 |
|
* Modifications do not cause iterators to fail |
1412 |
|
*/ |
1413 |
< |
public void testWeaklyConsistentIteration () { |
1413 |
> |
public void testWeaklyConsistentIteration() { |
1414 |
|
final LinkedBlockingDeque q = new LinkedBlockingDeque(3); |
1415 |
|
q.add(one); |
1416 |
|
q.add(two); |
1466 |
|
/** |
1467 |
|
* descendingIterator.remove removes current element |
1468 |
|
*/ |
1469 |
< |
public void testDescendingIteratorRemove () { |
1469 |
> |
public void testDescendingIteratorRemove() { |
1470 |
|
final LinkedBlockingDeque q = new LinkedBlockingDeque(); |
1471 |
|
for (int iters = 0; iters < 100; ++iters) { |
1472 |
|
q.add(new Integer(3)); |