288 |
|
try { |
289 |
|
q.remove(); |
290 |
|
shouldThrow(); |
291 |
< |
} catch (NoSuchElementException success){ |
291 |
> |
} catch (NoSuchElementException success) { |
292 |
|
} |
293 |
|
} |
294 |
|
|
413 |
|
ConcurrentLinkedQueue q = populatedQueue(SIZE); |
414 |
|
Object o[] = q.toArray(null); |
415 |
|
shouldThrow(); |
416 |
< |
} catch (NullPointerException success){} |
416 |
> |
} catch (NullPointerException success) {} |
417 |
|
} |
418 |
|
|
419 |
|
/** |
424 |
|
ConcurrentLinkedQueue q = populatedQueue(SIZE); |
425 |
|
Object o[] = q.toArray(new String[10] ); |
426 |
|
shouldThrow(); |
427 |
< |
} catch (ArrayStoreException success){} |
427 |
> |
} catch (ArrayStoreException success) {} |
428 |
|
} |
429 |
|
|
430 |
|
/** |
527 |
|
assertEquals(q.size(), r.size()); |
528 |
|
while (!q.isEmpty()) |
529 |
|
assertEquals(q.remove(), r.remove()); |
530 |
< |
} catch (Exception e){ |
530 |
> |
} catch (Exception e) { |
531 |
|
unexpectedException(); |
532 |
|
} |
533 |
|
} |