10 |
|
import junit.framework.*; |
11 |
|
import java.util.*; |
12 |
|
import java.util.concurrent.*; |
13 |
+ |
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
14 |
|
import java.util.concurrent.atomic.*; |
15 |
|
import java.math.BigInteger; |
16 |
|
import java.security.*; |
150 |
|
assertNull(ecs.poll()); |
151 |
|
Callable c = new StringTask(); |
152 |
|
ecs.submit(c); |
153 |
< |
Future f = ecs.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS); |
153 |
> |
Future f = ecs.poll(SHORT_DELAY_MS, MILLISECONDS); |
154 |
|
if (f != null) |
155 |
|
assertTrue(f.isDone()); |
156 |
|
} catch (Exception ex) { |