[cvs] / jsr166 / src / test / tck / LinkedListTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/LinkedListTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36, Sun Feb 22 04:34:44 2015 UTC revision 1.38, Fri May 15 18:21:19 2015 UTC
# Line 17  Line 17 
17    
18  public class LinkedListTest extends JSR166TestCase {  public class LinkedListTest extends JSR166TestCase {
19      public static void main(String[] args) {      public static void main(String[] args) {
20          junit.textui.TestRunner.run(suite());          main(suite(), args);
21      }      }
22    
23      public static Test suite() {      public static Test suite() {
# Line 102  Line 102 
102      public void testOfferNull() {      public void testOfferNull() {
103          LinkedList q = new LinkedList();          LinkedList q = new LinkedList();
104          q.offer(null);          q.offer(null);
105            assertNull(q.get(0));
106            assertTrue(q.contains(null));
107      }      }
108    
109      /**      /**
# Line 128  Line 130 
130       * addAll(null) throws NPE       * addAll(null) throws NPE
131       */       */
132      public void testAddAll1() {      public void testAddAll1() {
         try {  
133              LinkedList q = new LinkedList();              LinkedList q = new LinkedList();
134            try {
135              q.addAll(null);              q.addAll(null);
136              shouldThrow();              shouldThrow();
137          } catch (NullPointerException success) {}          } catch (NullPointerException success) {}

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.38

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8