20 |
|
return new TestSuite(ScheduledExecutorTest.class); |
21 |
|
} |
22 |
|
|
23 |
– |
|
23 |
|
/** |
24 |
|
* execute successfully executes a runnable |
25 |
|
*/ |
38 |
|
} |
39 |
|
} |
40 |
|
|
42 |
– |
|
41 |
|
/** |
42 |
|
* delayed schedule of callable successfully executes after delay |
43 |
|
*/ |
174 |
|
joinPool(p); |
175 |
|
} |
176 |
|
|
179 |
– |
|
177 |
|
/** |
178 |
|
* execute(null) throws NPE |
179 |
|
*/ |
470 |
|
assertTrue(p.isShutdown()); |
471 |
|
} |
472 |
|
|
476 |
– |
|
473 |
|
/** |
474 |
|
* isTerminated is false before termination, true after |
475 |
|
*/ |
660 |
|
} |
661 |
|
} |
662 |
|
|
667 |
– |
|
663 |
|
/** |
664 |
|
* If setExecuteExistingDelayedTasksAfterShutdownPolicy is false, |
665 |
|
* delayed tasks are cancelled at shutdown |
1170 |
|
} |
1171 |
|
} |
1172 |
|
|
1178 |
– |
|
1173 |
|
} |