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() { |
284 |
|
shouldThrow(); |
285 |
|
} catch (NullPointerException success) {} |
286 |
|
} |
287 |
+ |
|
288 |
|
/** |
289 |
|
* addAll of a collection with any null elements throws NPE after |
290 |
|
* possibly adding some elements |
709 |
|
/** |
710 |
|
* iterator.remove removes current element |
711 |
|
*/ |
712 |
< |
public void testIteratorRemove () { |
712 |
> |
public void testIteratorRemove() { |
713 |
|
final DelayQueue q = new DelayQueue(); |
714 |
|
q.add(new PDelay(2)); |
715 |
|
q.add(new PDelay(1)); |