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); |
3295 |
|
() -> f.obtrudeException(null), |
3296 |
|
|
3297 |
|
() -> CompletableFuture.delayedExecutor(1L, SECONDS, null), |
3298 |
< |
() -> CompletableFuture.delayedExecutor(1L, null, new ThreadExecutor()), |
3298 |
> |
() -> CompletableFuture.delayedExecutor(1L, null, exec), |
3299 |
|
() -> CompletableFuture.delayedExecutor(1L, null), |
3300 |
|
|
3301 |
|
() -> f.orTimeout(1L, null), |