49 |
|
assertTrue(a.contains(ints[i])); |
50 |
|
} |
51 |
|
|
52 |
– |
|
52 |
|
/** |
53 |
|
* addAll adds each element from the given collection |
54 |
|
*/ |
130 |
|
assertEquals(a.hashCode(), b.hashCode()); |
131 |
|
} |
132 |
|
|
134 |
– |
|
133 |
|
/** |
134 |
|
* containsAll returns true for collections with subset of elements |
135 |
|
*/ |
185 |
|
CopyOnWriteArraySet full = populatedSet(3); |
186 |
|
String s = full.toString(); |
187 |
|
for (int i = 0; i < 3; ++i) { |
188 |
< |
assertTrue(s.indexOf(String.valueOf(i)) >= 0); |
188 |
> |
assertTrue(s.contains(String.valueOf(i))); |
189 |
|
} |
190 |
|
} |
191 |
|
|
194 |
– |
|
192 |
|
/** |
193 |
|
* removeAll removes all elements from the given collection |
194 |
|
*/ |
201 |
|
assertEquals(1, full.size()); |
202 |
|
} |
203 |
|
|
207 |
– |
|
204 |
|
/** |
205 |
|
* remove removes an element |
206 |
|
*/ |
247 |
|
assertEquals(2, (int) i[2]); |
248 |
|
} |
249 |
|
|
254 |
– |
|
250 |
|
/** |
251 |
|
* toArray throws an ArrayStoreException when the given array can |
252 |
|
* not store the objects inside the set |