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.37 by jsr166, Sat Apr 25 04:55:31 2015 UTC vs.
Revision 1.38 by jsr166, Fri May 15 18:21:19 2015 UTC

# Line 102 | Line 102 | public class LinkedListTest extends JSR1
102      public void testOfferNull() {
103          LinkedList q = new LinkedList();
104          q.offer(null);
105 +        assertNull(q.get(0));
106 +        assertTrue(q.contains(null));
107      }
108  
109      /**
# Line 128 | Line 130 | public class LinkedListTest extends JSR1
130       * addAll(null) throws NPE
131       */
132      public void testAddAll1() {
133 +        LinkedList q = new LinkedList();
134          try {
132            LinkedList q = new LinkedList();
135              q.addAll(null);
136              shouldThrow();
137          } catch (NullPointerException success) {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines