183 |
|
m.add(new Object()); |
184 |
|
l.addAll(-1,m); |
185 |
|
shouldThrow(); |
186 |
< |
} catch (IndexOutOfBoundsException success){} |
186 |
> |
} catch (IndexOutOfBoundsException success) {} |
187 |
|
} |
188 |
|
|
189 |
|
/** |
238 |
|
try { |
239 |
|
q.remove(); |
240 |
|
shouldThrow(); |
241 |
< |
} catch (NoSuchElementException success){ |
241 |
> |
} catch (NoSuchElementException success) { |
242 |
|
} |
243 |
|
} |
244 |
|
|
364 |
|
l.add(new Object()); |
365 |
|
Object o[] = l.toArray(null); |
366 |
|
shouldThrow(); |
367 |
< |
} catch (NullPointerException success){} |
367 |
> |
} catch (NullPointerException success) {} |
368 |
|
} |
369 |
|
|
370 |
|
/** |
376 |
|
l.add(new Integer(5)); |
377 |
|
Object o[] = l.toArray(new String[10] ); |
378 |
|
shouldThrow(); |
379 |
< |
} catch (ArrayStoreException success){} |
379 |
> |
} catch (ArrayStoreException success) {} |
380 |
|
} |
381 |
|
|
382 |
|
/** |
522 |
|
try { |
523 |
|
q.pop(); |
524 |
|
shouldThrow(); |
525 |
< |
} catch (NoSuchElementException success){ |
525 |
> |
} catch (NoSuchElementException success) { |
526 |
|
} |
527 |
|
} |
528 |
|
|