375 |
|
|
376 |
|
/** |
377 |
|
* exceptionally action completes with function value on source |
378 |
< |
* exception; otherwise with source value |
378 |
> |
* exception; otherwise with source value |
379 |
|
*/ |
380 |
|
public void testExceptionally() { |
381 |
|
CompletableFuture<Integer> f = new CompletableFuture<>(); |
1348 |
|
try { |
1349 |
|
g.join(); |
1350 |
|
shouldThrow(); |
1351 |
< |
} catch (Exception ok) { |
1352 |
< |
} |
1351 |
> |
} catch (CompletionException success) {} |
1352 |
|
checkCompletedWithWrappedCFException(g); |
1353 |
|
} |
1354 |
|
|
2114 |
|
try { |
2115 |
|
g.join(); |
2116 |
|
shouldThrow(); |
2117 |
< |
} catch (Exception ok) { |
2119 |
< |
} |
2117 |
> |
} catch (CompletionException success) {} |
2118 |
|
checkCompletedWithWrappedCFException(g); |
2119 |
|
} |
2120 |
|
|