163 |
|
CopyOnWriteArraySet full = populatedSet(3); |
164 |
|
Iterator i = full.iterator(); |
165 |
|
int j; |
166 |
< |
for(j = 0; i.hasNext(); j++) |
166 |
> |
for (j = 0; i.hasNext(); j++) |
167 |
|
assertEquals(j, ((Integer)i.next()).intValue()); |
168 |
|
assertEquals(3, j); |
169 |
|
} |
265 |
|
c.add("asdadasd"); |
266 |
|
c.toArray(new Long[5]); |
267 |
|
shouldThrow(); |
268 |
< |
} catch(ArrayStoreException e){} |
268 |
> |
} catch (ArrayStoreException e){} |
269 |
|
} |
270 |
|
|
271 |
|
/** |
286 |
|
assertEquals(q.size(), r.size()); |
287 |
|
assertTrue(q.equals(r)); |
288 |
|
assertTrue(r.equals(q)); |
289 |
< |
} catch(Exception e){ |
289 |
> |
} catch (Exception e){ |
290 |
|
unexpectedException(); |
291 |
|
} |
292 |
|
} |