28 |
|
|
29 |
|
public class ExecutorsTest extends JSR166TestCase { |
30 |
|
public static void main(String[] args) { |
31 |
< |
junit.textui.TestRunner.run(suite()); |
31 |
> |
main(suite(), args); |
32 |
|
} |
33 |
|
public static Test suite() { |
34 |
|
return new TestSuite(ExecutorsTest.class); |
285 |
|
for (final ExecutorService executor : executors) { |
286 |
|
threads.add(newStartedThread(new CheckedRunnable() { |
287 |
|
public void realRun() { |
288 |
– |
long startTime = System.nanoTime(); |
288 |
|
Future future = executor.submit(sleeper); |
289 |
|
assertFutureTimesOut(future); |
290 |
|
}})); |