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

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

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

revision 1.11, Sat Feb 28 18:06:38 2015 UTC revision 1.12, Sat Feb 28 18:23:30 2015 UTC
# Line 165  Line 165 
165       * addAll throws ISE if an add fails       * addAll throws ISE if an add fails
166       */       */
167      public void testAddAll4() {      public void testAddAll4() {
         try {  
168              Fail q = new Fail();              Fail q = new Fail();
169              Integer[] ints = new Integer[SIZE];              Integer[] ints = new Integer[SIZE];
170              for (int i = 0; i < SIZE; ++i)              for (int i = 0; i < SIZE; ++i)
171                  ints[i] = new Integer(i);                  ints[i] = new Integer(i);
172            try {
173              q.addAll(Arrays.asList(ints));              q.addAll(Arrays.asList(ints));
174              shouldThrow();              shouldThrow();
175          } catch (IllegalStateException success) {}          } catch (IllegalStateException success) {}

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8