3167 |
|
final CompletableFuture<Integer> g = m.exceptionallyCompose(f, r); |
3168 |
|
if (createIncomplete) assertTrue(f.complete(v1)); |
3169 |
|
|
3170 |
– |
if (!createIncomplete && testImplementationDetails) |
3171 |
– |
assertSame(f, g); // an optimization |
3172 |
– |
|
3170 |
|
checkCompletedNormally(f, v1); |
3171 |
|
checkCompletedNormally(g, v1); |
3172 |
|
r.assertNotInvoked(); |
3264 |
|
} |
3265 |
|
|
3266 |
|
checkCompletedExceptionally(g, ex); |
3267 |
< |
|
3271 |
< |
// TODO: should this be: checkCompletedWithWrappedException(h, ex); |
3272 |
< |
try { |
3273 |
< |
h.join(); |
3274 |
< |
shouldThrow(); |
3275 |
< |
} catch (Throwable t) { |
3276 |
< |
assertSame(ex, (t instanceof CompletionException) ? t.getCause() : t); |
3277 |
< |
} |
3278 |
< |
|
3267 |
> |
checkCompletedWithWrappedException(h, ex); |
3268 |
|
checkCompletedExceptionally(f, ex0); |
3269 |
|
}} |
3270 |
|
|