--- jsr166/src/test/tck/AbstractQueueTest.java 2015/02/28 18:06:38 1.11 +++ jsr166/src/test/tck/AbstractQueueTest.java 2015/04/25 04:55:30 1.13 @@ -16,7 +16,7 @@ import junit.framework.TestSuite; public class AbstractQueueTest extends JSR166TestCase { public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); + main(suite(), args); } public static Test suite() { return new TestSuite(AbstractQueueTest.class); @@ -165,11 +165,11 @@ public class AbstractQueueTest extends J * addAll throws ISE if an add fails */ public void testAddAll4() { + Fail q = new Fail(); + Integer[] ints = new Integer[SIZE]; + for (int i = 0; i < SIZE; ++i) + ints[i] = new Integer(i); try { - Fail q = new Fail(); - Integer[] ints = new Integer[SIZE]; - for (int i = 0; i < SIZE; ++i) - ints[i] = new Integer(i); q.addAll(Arrays.asList(ints)); shouldThrow(); } catch (IllegalStateException success) {}