507 |
|
} |
508 |
|
|
509 |
|
/** |
510 |
+ |
* The default rejected execution handler is AbortPolicy. |
511 |
+ |
*/ |
512 |
+ |
public void testDefaultRejectedExecutionHandler() { |
513 |
+ |
final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); |
514 |
+ |
try (PoolCleaner cleaner = cleaner(p)) { |
515 |
+ |
assertTrue(p.getRejectedExecutionHandler() |
516 |
+ |
instanceof ThreadPoolExecutor.AbortPolicy); |
517 |
+ |
} |
518 |
+ |
} |
519 |
+ |
|
520 |
+ |
/** |
521 |
|
* isShutdown is false before shutdown, true after |
522 |
|
*/ |
523 |
|
public void testIsShutdown() { |