229 |
|
} |
230 |
|
|
231 |
|
/** |
232 |
< |
* Cancelling a task causes timed get in another thread to throw CancellationException |
232 |
> |
* Cancelling a task causes timed get in another thread to throw |
233 |
> |
* CancellationException |
234 |
|
*/ |
235 |
|
public void testTimedGet_Cancellation() throws InterruptedException { |
236 |
|
final FutureTask ft = |
254 |
|
} |
255 |
|
|
256 |
|
/** |
257 |
< |
* Cancelling a task causes get in another thread to throw CancellationException |
257 |
> |
* Cancelling a task causes get in another thread to throw |
258 |
> |
* CancellationException |
259 |
|
*/ |
260 |
|
public void testGet_Cancellation() throws InterruptedException { |
261 |
|
final FutureTask ft = |
298 |
|
} |
299 |
|
|
300 |
|
/** |
301 |
< |
* A runtime exception in task causes timed get to throw ExecutionException |
301 |
> |
* A runtime exception in task causes timed get to throw ExecutionException |
302 |
|
*/ |
303 |
|
public void testTimedGet_ExecutionException2() throws Exception { |
304 |
|
final FutureTask ft = new FutureTask(new Callable() { |
333 |
|
} |
334 |
|
|
335 |
|
/** |
336 |
< |
* Interrupting a waiting timed get causes it to throw InterruptedException |
336 |
> |
* Interrupting a waiting timed get causes it to throw InterruptedException |
337 |
|
*/ |
338 |
|
public void testTimedGet_InterruptedException2() throws InterruptedException { |
339 |
|
final FutureTask ft = new FutureTask(new NoOpCallable()); |