6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
8 |
|
|
9 |
– |
|
9 |
|
import junit.framework.*; |
10 |
|
import java.util.*; |
11 |
|
import java.util.concurrent.*; |
52 |
|
assertTrue(task.done); |
53 |
|
} |
54 |
|
|
56 |
– |
|
55 |
|
/** |
56 |
|
* Completed submit(callable) returns result |
57 |
|
*/ |
82 |
|
assertSame(TEST_STRING, result); |
83 |
|
} |
84 |
|
|
87 |
– |
|
85 |
|
/** |
86 |
|
* A submitted privileged action runs to completion |
87 |
|
*/ |
154 |
|
} catch (NullPointerException success) {} |
155 |
|
} |
156 |
|
|
160 |
– |
|
157 |
|
/** |
158 |
|
* submit(null callable) throws NPE |
159 |
|
*/ |
380 |
|
} |
381 |
|
} |
382 |
|
|
387 |
– |
|
383 |
|
/** |
384 |
|
* timed invokeAny(null) throws NPE |
385 |
|
*/ |