658 |
|
} |
659 |
|
|
660 |
|
/** |
661 |
< |
* toArray(null) throws NPE |
661 |
> |
* toArray(null) throws NullPointerException |
662 |
|
*/ |
663 |
< |
public void testToArray_BadArg() { |
663 |
> |
public void testToArray_NullArg() { |
664 |
|
ConcurrentLinkedDeque q = populatedDeque(SIZE); |
665 |
|
try { |
666 |
< |
Object o[] = q.toArray(null); |
666 |
> |
q.toArray(null); |
667 |
|
shouldThrow(); |
668 |
|
} catch (NullPointerException success) {} |
669 |
|
} |
670 |
|
|
671 |
|
/** |
672 |
< |
* toArray() with incompatible array type throws ArrayStoreException |
672 |
> |
* toArray(incompatible array type) throws ArrayStoreException |
673 |
|
*/ |
674 |
|
public void testToArray1_BadArg() { |
675 |
|
ConcurrentLinkedDeque q = populatedDeque(SIZE); |
676 |
|
try { |
677 |
< |
Object o[] = q.toArray(new String[10]); |
677 |
> |
q.toArray(new String[10]); |
678 |
|
shouldThrow(); |
679 |
|
} catch (ArrayStoreException success) {} |
680 |
|
} |