# | 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) {} |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |