143 |
|
} |
144 |
|
|
145 |
|
/** |
146 |
< |
* get returns the value at the given index |
146 |
> |
* get returns the value at the given index |
147 |
|
*/ |
148 |
|
public void testGet() { |
149 |
|
List full = populatedArray(3); |
298 |
|
public void testToArray2() { |
299 |
|
List full = populatedArray(3); |
300 |
|
Integer[] i = new Integer[3]; |
301 |
< |
i = (Integer[])full.toArray(i); |
302 |
< |
assertEquals(3, i.length); |
301 |
> |
assertSame(i, full.toArray(i)); |
302 |
|
assertEquals(0, i[0].intValue()); |
303 |
|
assertEquals(1, i[1].intValue()); |
304 |
|
assertEquals(2, i[2].intValue()); |