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.14 by jsr166, Sat May 23 00:53:08 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 153 | Line 153 | public class AbstractQueueTest extends J
153      public void testAddAll3() {
154          Succeed q = new Succeed();
155          Integer[] ints = new Integer[SIZE];
156 <        for (int i = 0; i < SIZE-1; ++i)
156 >        for (int i = 0; i < SIZE - 1; ++i)
157              ints[i] = new Integer(i);
158          try {
159              q.addAll(Arrays.asList(ints));
# 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