107 |
|
} |
108 |
|
|
109 |
|
/** |
110 |
< |
* Cancelling before running succeeds |
110 |
> |
* Cancelling before running succeeds |
111 |
|
*/ |
112 |
|
public void testCancelBeforeRun() { |
113 |
|
FutureTask task = new FutureTask(new NoOpCallable()); |
229 |
|
} |
230 |
|
|
231 |
|
/** |
232 |
< |
* Cancelling a task causes timed get in another thread to throw |
233 |
< |
* 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 = |