10 |
|
import junit.framework.*; |
11 |
|
import java.util.*; |
12 |
|
import java.util.concurrent.*; |
13 |
+ |
import java.util.concurrent.atomic.*; |
14 |
|
import java.math.BigInteger; |
15 |
|
import java.security.*; |
16 |
|
|
214 |
|
new ExecutorCompletionService<String>(e); |
215 |
|
try { |
216 |
|
assertNull(ecs.poll()); |
217 |
< |
Callable<String> c = new StringTask(); |
218 |
< |
Future f1 = ecs.submit(c); |
217 |
> |
Runnable r = new NoOpRunnable(); |
218 |
> |
Future f1 = ecs.submit(r, null); |
219 |
|
assertTrue("submit must return MyRunnableFuture", |
220 |
|
f1 instanceof MyRunnableFuture); |
221 |
|
Future f2 = ecs.take(); |