291 |
|
/** |
292 |
|
* schedule callable throws RejectedExecutionException if shutdown |
293 |
|
*/ |
294 |
< |
public void testSchedule3_RejectedExecutionException() { |
295 |
< |
CustomExecutor se = new CustomExecutor(1); |
296 |
< |
try { |
297 |
< |
se.shutdown(); |
298 |
< |
se.schedule(new NoOpCallable(), |
299 |
< |
MEDIUM_DELAY_MS, MILLISECONDS); |
300 |
< |
shouldThrow(); |
301 |
< |
} catch (RejectedExecutionException success) { |
302 |
< |
} catch (SecurityException ok) { |
303 |
< |
} |
304 |
< |
joinPool(se); |
294 |
> |
public void testSchedule3_RejectedExecutionException() { |
295 |
> |
CustomExecutor se = new CustomExecutor(1); |
296 |
> |
try { |
297 |
> |
se.shutdown(); |
298 |
> |
se.schedule(new NoOpCallable(), |
299 |
> |
MEDIUM_DELAY_MS, MILLISECONDS); |
300 |
> |
shouldThrow(); |
301 |
> |
} catch (RejectedExecutionException success) { |
302 |
> |
} catch (SecurityException ok) { |
303 |
> |
} |
304 |
> |
joinPool(se); |
305 |
|
} |
306 |
|
|
307 |
|
/** |