# | Line 284 | Line 284 | public class DelayQueueTest extends JSR1 | |
---|---|---|
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 | |
# | Line 787 | Line 788 | public class DelayQueueTest extends JSR1 | |
788 | public void testPeekDelayed() { | |
789 | DelayQueue q = new DelayQueue(); | |
790 | q.add(new NanoDelay(Long.MAX_VALUE)); | |
791 | < | assert(q.peek() != null); |
791 | > | assertNotNull(q.peek()); |
792 | } | |
793 | ||
794 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |