ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AbstractQueueTest.java
(Generate patch)

Comparing jsr166/src/test/tck/AbstractQueueTest.java (file contents):
Revision 1.11 by jsr166, Sat Feb 28 18:06:38 2015 UTC vs.
Revision 1.12 by jsr166, Sat Feb 28 18:23:30 2015 UTC

# Line 165 | Line 165 | public class AbstractQueueTest extends J
165       * addAll throws ISE if an add fails
166       */
167      public void testAddAll4() {
168 +        Fail q = new Fail();
169 +        Integer[] ints = new Integer[SIZE];
170 +        for (int i = 0; i < SIZE; ++i)
171 +            ints[i] = new Integer(i);
172          try {
169            Fail q = new Fail();
170            Integer[] ints = new Integer[SIZE];
171            for (int i = 0; i < SIZE; ++i)
172                ints[i] = new Integer(i);
173              q.addAll(Arrays.asList(ints));
174              shouldThrow();
175          } catch (IllegalStateException success) {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines