58 |
|
} |
59 |
|
|
60 |
|
/** |
61 |
< |
* Constructor throws IAE if capacity argument nonpositive |
61 |
> |
* Constructor throws IAE if capacity argument nonpositive |
62 |
|
*/ |
63 |
|
public void testConstructor2() { |
64 |
|
try { |
433 |
|
assertEquals(i, ((Integer)q.poll(SHORT_DELAY_MS, MILLISECONDS)).intValue()); |
434 |
|
} |
435 |
|
try { |
436 |
< |
q.poll(LONG_DELAY_MS, MILLISECONDS); |
436 |
> |
q.poll(SMALL_DELAY_MS, MILLISECONDS); |
437 |
|
shouldThrow(); |
438 |
|
} catch (InterruptedException success) {} |
439 |
|
}}); |
644 |
|
PriorityBlockingQueue q = populatedQueue(SIZE); |
645 |
|
Object o[] = q.toArray(new String[10] ); |
646 |
|
shouldThrow(); |
647 |
< |
} catch (ArrayStoreException success) {} |
647 |
> |
} catch (ArrayStoreException success) {} |
648 |
|
} |
649 |
|
|
650 |
|
/** |