ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentLinkedQueueTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentLinkedQueueTest.java (file contents):
Revision 1.19 by jsr166, Sat Oct 9 19:30:34 2010 UTC vs.
Revision 1.21 by jsr166, Wed Nov 3 16:46:34 2010 UTC

# Line 392 | Line 392 | public class ConcurrentLinkedQueueTest e
392      }
393  
394      /**
395 <     * toArray(null) throws NPE
395 >     * toArray(null) throws NullPointerException
396       */
397 <    public void testToArray_BadArg() {
397 >    public void testToArray_NullArg() {
398          ConcurrentLinkedQueue q = populatedQueue(SIZE);
399          try {
400 <            Object o[] = q.toArray(null);
400 >            q.toArray(null);
401              shouldThrow();
402          } catch (NullPointerException success) {}
403      }
404  
405      /**
406 <     * toArray with incompatible array type throws ArrayStoreException
406 >     * toArray(incompatible array type) throws ArrayStoreException
407       */
408      public void testToArray1_BadArg() {
409          ConcurrentLinkedQueue q = populatedQueue(SIZE);
410          try {
411 <            Object o[] = q.toArray(new String[10]);
411 >            q.toArray(new String[10]);
412              shouldThrow();
413          } catch (ArrayStoreException success) {}
414      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines