[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.16, Wed Aug 25 01:46:24 2010 UTC revision 1.17, Wed Nov 3 07:54:52 2010 UTC
# Line 655  Line 655 
655      }      }
656    
657      /**      /**
658       * toArray with incompatible array type throws CCE       * toArray(incompatible array type) throws ArrayStoreException
659       */       */
660      public void testToArray1_BadArg() {      public void testToArray1_BadArg() {
661          ArrayDeque l = new ArrayDeque();          ArrayDeque l = new ArrayDeque();
662          l.add(new Integer(5));          l.add(new Integer(5));
663          try {          try {
664              Object o[] = l.toArray(new String[10]);              l.toArray(new String[10]);
665              shouldThrow();              shouldThrow();
666          } catch (ArrayStoreException success) {}          } catch (ArrayStoreException success) {}
667      }      }

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8