640 |
|
|
641 |
|
ASYNC { |
642 |
|
public void checkExecutionMode() { |
643 |
< |
// If tests are added that may run across different |
644 |
< |
// pools, this needs to be weakened to no-op. |
645 |
< |
ForkJoinPool p = ForkJoinTask.getPool(); |
646 |
< |
assertTrue(p == null || |
647 |
< |
(defaultExecutorIsCommonPool && |
648 |
< |
p == ForkJoinPool.commonPool())); |
643 |
> |
assertEquals(defaultExecutorIsCommonPool, |
644 |
> |
(ForkJoinPool.commonPool() == ForkJoinTask.getPool())); |
645 |
|
} |
646 |
|
public CompletableFuture<Void> runAsync(Runnable a) { |
647 |
|
return CompletableFuture.runAsync(a); |