28 |
|
public class ForkJoinTaskTest extends JSR166TestCase { |
29 |
|
|
30 |
|
public static void main(String[] args) { |
31 |
< |
junit.textui.TestRunner.run (suite()); |
31 |
> |
junit.textui.TestRunner.run(suite()); |
32 |
|
} |
33 |
|
public static Test suite() { |
34 |
|
return new TestSuite(ForkJoinTaskTest.class); |
44 |
|
|
45 |
|
static final ForkJoinPool mainPool = new ForkJoinPool(); |
46 |
|
static final ForkJoinPool singletonPool = new ForkJoinPool(1); |
47 |
< |
static final ForkJoinPool asyncSingletonPool = |
47 |
> |
static final ForkJoinPool asyncSingletonPool = |
48 |
|
new ForkJoinPool(1, ForkJoinPool.defaultForkJoinWorkerThreadFactory, |
49 |
|
null, true); |
50 |
|
static final class FJException extends RuntimeException { |
224 |
|
* invoke returns when task completes normally. |
225 |
|
* isCompletedAbnormally and isCancelled return false for normally |
226 |
|
* completed tasks. getRawResult of a RecursiveAction returns null; |
227 |
– |
* |
227 |
|
*/ |
228 |
|
public void testInvoke() { |
229 |
|
RecursiveAction a = new RecursiveAction() { |