18 |
|
|
19 |
|
public class ArrayDequeTest extends JSR166TestCase { |
20 |
|
public static void main(String[] args) { |
21 |
< |
junit.textui.TestRunner.run(suite()); |
21 |
> |
main(suite(), args); |
22 |
|
} |
23 |
|
|
24 |
|
public static Test suite() { |
51 |
|
*/ |
52 |
|
public void testConstructor3() { |
53 |
|
try { |
54 |
< |
ArrayDeque q = new ArrayDeque((Collection)null); |
54 |
> |
new ArrayDeque((Collection)null); |
55 |
|
shouldThrow(); |
56 |
|
} catch (NullPointerException success) {} |
57 |
|
} |
62 |
|
public void testConstructor4() { |
63 |
|
try { |
64 |
|
Integer[] ints = new Integer[SIZE]; |
65 |
< |
ArrayDeque q = new ArrayDeque(Arrays.asList(ints)); |
65 |
> |
new ArrayDeque(Arrays.asList(ints)); |
66 |
|
shouldThrow(); |
67 |
|
} catch (NullPointerException success) {} |
68 |
|
} |
75 |
|
Integer[] ints = new Integer[SIZE]; |
76 |
|
for (int i = 0; i < SIZE-1; ++i) |
77 |
|
ints[i] = new Integer(i); |
78 |
< |
ArrayDeque q = new ArrayDeque(Arrays.asList(ints)); |
78 |
> |
new ArrayDeque(Arrays.asList(ints)); |
79 |
|
shouldThrow(); |
80 |
|
} catch (NullPointerException success) {} |
81 |
|
} |