13 |
|
public static void main(String[] args) { |
14 |
|
junit.textui.TestRunner.run(suite()); |
15 |
|
} |
16 |
+ |
|
17 |
|
public static Test suite() { |
18 |
|
return new TestSuite(RecursiveActionTest.class); |
19 |
|
} |
68 |
|
* invoke returns when task completes normally. |
69 |
|
* isCompletedAbnormally and isCancelled return false for normally |
70 |
|
* completed tasks. getRawResult of a RecursiveAction returns null; |
70 |
– |
* |
71 |
|
*/ |
72 |
|
public void testInvoke() { |
73 |
|
RecursiveAction a = new RecursiveAction() { |
460 |
|
|
461 |
|
/** |
462 |
|
* getPoolIndex of current thread in pool returns 0 <= value < poolSize |
463 |
– |
* |
463 |
|
*/ |
464 |
|
public void testWorkerGetPoolIndex() { |
465 |
|
RecursiveAction a = new RecursiveAction() { |