1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
* Other contributors include Andrew Wright, Jeffrey Hayes, |
6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
257 |
|
CopyOnWriteArrayList full = populatedArray(3); |
258 |
|
String s = full.toString(); |
259 |
|
for (int i = 0; i < 3; ++i) { |
260 |
< |
assertTrue(s.indexOf(String.valueOf(i)) >= 0); |
260 |
> |
assertTrue(s.contains(String.valueOf(i))); |
261 |
|
} |
262 |
|
} |
263 |
|
|
275 |
|
/** |
276 |
|
* lastIndexOf returns the index from the given starting point |
277 |
|
*/ |
278 |
< |
public void testlastIndexOf2() { |
278 |
> |
public void testLastIndexOf2() { |
279 |
|
CopyOnWriteArrayList full = populatedArray(3); |
280 |
|
full.add(one); |
281 |
|
full.add(three); |