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

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

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

revision 1.17, Wed Nov 3 07:54:52 2010 UTC revision 1.18, Wed Nov 3 16:46:34 2010 UTC
# Line 643  Line 643 
643      }      }
644    
645      /**      /**
646       * toArray(null) throws NPE       * toArray(null) throws NullPointerException
647       */       */
648      public void testToArray_BadArg() {      public void testToArray_NullArg() {
649          ArrayDeque l = new ArrayDeque();          ArrayDeque l = new ArrayDeque();
650          l.add(new Object());          l.add(new Object());
651          try {          try {
652              Object o[] = l.toArray(null);              l.toArray(null);
653              shouldThrow();              shouldThrow();
654          } catch (NullPointerException success) {}          } catch (NullPointerException success) {}
655      }      }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8