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.13 by jsr166, Sat Apr 25 04:55:30 2015 UTC

# Line 16 | Line 16 | import junit.framework.TestSuite;
16  
17   public class AbstractQueueTest extends JSR166TestCase {
18      public static void main(String[] args) {
19 <        junit.textui.TestRunner.run(suite());
19 >        main(suite(), args);
20      }
21      public static Test suite() {
22          return new TestSuite(AbstractQueueTest.class);
# 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