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

Comparing jsr166/src/test/tck/LinkedListTest.java (file contents):
Revision 1.21 by jsr166, Wed Nov 3 07:54:52 2010 UTC vs.
Revision 1.22 by jsr166, Wed Nov 3 16:46:34 2010 UTC

# Line 341 | Line 341 | public class LinkedListTest extends JSR1
341      }
342  
343      /**
344 <     * toArray(null) throws NPE
344 >     * toArray(null) throws NullPointerException
345       */
346 <    public void testToArray_BadArg() {
346 >    public void testToArray_NullArg() {
347          LinkedList l = new LinkedList();
348          l.add(new Object());
349          try {
350 <            Object o[] = l.toArray(null);
350 >            l.toArray(null);
351              shouldThrow();
352          } catch (NullPointerException success) {}
353      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines