22 |
|
private static final int NOCAP = Integer.MAX_VALUE; |
23 |
|
|
24 |
|
/** |
25 |
< |
* A delayed implmentation for testing. |
25 |
> |
* A delayed implementation for testing. |
26 |
|
* Most tests use Pseudodelays, where delays are all elapsed |
27 |
|
* (so, no blocking solely for delays) but are still ordered |
28 |
|
*/ |
764 |
|
} |
765 |
|
|
766 |
|
/** |
767 |
< |
* toArray with incompatable array type throws CCE |
767 |
> |
* toArray with incompatible array type throws CCE |
768 |
|
*/ |
769 |
|
public void testToArray1_BadArg() { |
770 |
|
try { |
853 |
|
|
854 |
|
|
855 |
|
/** |
856 |
< |
* Dekayed actions do not occur until their delay elapses |
856 |
> |
* Delayed actions do not occur until their delay elapses |
857 |
|
*/ |
858 |
|
public void testDelay() { |
859 |
|
DelayQueue q = new DelayQueue(); |
933 |
|
q.drainTo(l); |
934 |
|
assertTrue(l.size() >= SIZE); |
935 |
|
t.join(); |
936 |
< |
assertTrue(q.size() + l.size() == SIZE+1); |
936 |
> |
assertTrue(q.size() + l.size() >= SIZE); |
937 |
|
} catch(Exception e){ |
938 |
|
unexpectedException(); |
939 |
|
} |