13 |
|
|
14 |
|
public class DelayQueueTest extends JSR166TestCase { |
15 |
|
public static void main(String[] args) { |
16 |
< |
junit.textui.TestRunner.run (suite()); |
16 |
> |
junit.textui.TestRunner.run(suite()); |
17 |
|
} |
18 |
|
|
19 |
|
public static Test suite() { |
191 |
|
} |
192 |
|
|
193 |
|
/** |
194 |
< |
* remainingCapacity does not change when elementa added or removed, |
194 |
> |
* remainingCapacity does not change when elements added or removed, |
195 |
|
* but size does |
196 |
|
*/ |
197 |
|
public void testRemainingCapacity() { |
708 |
|
/** |
709 |
|
* iterator.remove removes current element |
710 |
|
*/ |
711 |
< |
public void testIteratorRemove () { |
711 |
> |
public void testIteratorRemove() { |
712 |
|
final DelayQueue q = new DelayQueue(); |
713 |
|
q.add(new PDelay(2)); |
714 |
|
q.add(new PDelay(1)); |
754 |
|
}}); |
755 |
|
|
756 |
|
joinPool(executor); |
757 |
– |
|
757 |
|
} |
758 |
|
|
759 |
|
|