# | Line 628 | Line 628 | public class LinkedBlockingQueueTest ext | |
---|---|---|
628 | } | |
629 | ||
630 | /** | |
631 | < | * toArray(null) throws NPE |
631 | > | * toArray(null) throws NullPointerException |
632 | */ | |
633 | < | public void testToArray_BadArg() { |
633 | > | public void testToArray_NullArg() { |
634 | LinkedBlockingQueue q = populatedQueue(SIZE); | |
635 | try { | |
636 | < | Object o[] = q.toArray(null); |
636 | > | q.toArray(null); |
637 | shouldThrow(); | |
638 | } catch (NullPointerException success) {} | |
639 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |