52 |
|
*/ |
53 |
|
public void testConstructor3() { |
54 |
|
try { |
55 |
< |
ConcurrentLinkedQueue q = new ConcurrentLinkedQueue((Collection)null); |
55 |
> |
new ConcurrentLinkedQueue((Collection)null); |
56 |
|
shouldThrow(); |
57 |
|
} catch (NullPointerException success) {} |
58 |
|
} |
63 |
|
public void testConstructor4() { |
64 |
|
try { |
65 |
|
Integer[] ints = new Integer[SIZE]; |
66 |
< |
ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); |
66 |
> |
new ConcurrentLinkedQueue(Arrays.asList(ints)); |
67 |
|
shouldThrow(); |
68 |
|
} catch (NullPointerException success) {} |
69 |
|
} |
76 |
|
Integer[] ints = new Integer[SIZE]; |
77 |
|
for (int i = 0; i < SIZE-1; ++i) |
78 |
|
ints[i] = new Integer(i); |
79 |
< |
ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); |
79 |
> |
new ConcurrentLinkedQueue(Arrays.asList(ints)); |
80 |
|
shouldThrow(); |
81 |
|
} catch (NullPointerException success) {} |
82 |
|
} |