# | Line 614 | Line 614 | public class DelayQueueTest extends JSR1 | |
---|---|---|
614 | ++i; | |
615 | } | |
616 | assertEquals(i, SIZE); | |
617 | + | assertIteratorExhausted(it); |
618 | + | } |
619 | + | |
620 | + | /** |
621 | + | * iterator of empty collection has no elements |
622 | + | */ |
623 | + | public void testEmptyIterator() { |
624 | + | assertIteratorExhausted(new DelayQueue().iterator()); |
625 | } | |
626 | ||
627 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |