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

Comparing jsr166/src/test/tck/LinkedTransferQueueTest.java (file contents):
Revision 1.35 by jsr166, Fri Oct 29 07:27:26 2010 UTC vs.
Revision 1.37 by jsr166, Wed Nov 3 16:46:34 2010 UTC

# Line 575 | Line 575 | public class LinkedTransferQueueTest ext
575      /**
576       * toArray(null) throws NullPointerException
577       */
578 <    public void testToArray_BadArg() {
578 >    public void testToArray_NullArg() {
579          LinkedTransferQueue q = populatedQueue(SIZE);
580          try {
581 <            Object o[] = q.toArray(null);
581 >            q.toArray(null);
582              shouldThrow();
583          } catch (NullPointerException success) {}
584      }
585  
586      /**
587 <     * toArray(incompatible array type) throws CCE
587 >     * toArray(incompatible array type) throws ArrayStoreException
588       */
589      public void testToArray1_BadArg() {
590          LinkedTransferQueue q = populatedQueue(SIZE);
591          try {
592 <            Object o[] = q.toArray(new String[10]);
592 >            q.toArray(new String[10]);
593              shouldThrow();
594          } catch (ArrayStoreException success) {}
595      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines