53 |
|
catch (Throwable fail) { threadUnexpectedException(fail); } |
54 |
|
} |
55 |
|
|
56 |
< |
void checkCompletedNormally(CompletableFuture<?> f, Object value) { |
56 |
> |
<T> void checkCompletedNormally(CompletableFuture<T> f, T value) { |
57 |
|
try { |
58 |
|
assertEquals(value, f.join()); |
59 |
|
} catch (Throwable fail) { threadUnexpectedException(fail); } |
272 |
|
} |
273 |
|
|
274 |
|
/** |
275 |
< |
* completedFuture returns a completed CompletableFuture with give value |
275 |
> |
* completedFuture returns a completed CompletableFuture with given value |
276 |
|
*/ |
277 |
|
public void testCompletedFuture() { |
278 |
|
CompletableFuture<String> f = CompletableFuture.completedFuture("test"); |