180 |
|
} catch (Throwable fail) { threadUnexpectedException(fail); } |
181 |
|
} |
182 |
|
|
183 |
– |
|
183 |
|
public static final class FJException extends RuntimeException { |
184 |
|
FJException() { super(); } |
185 |
|
} |
729 |
|
AsyncFib f = new AsyncFib(8); |
730 |
|
AsyncFib g = new AsyncFib(9); |
731 |
|
AsyncFib h = null; |
732 |
< |
try { |
733 |
< |
invokeAll(f, g, h); |
734 |
< |
shouldThrow(); |
735 |
< |
} catch (NullPointerException success) {} |
732 |
> |
Runnable[] throwingActions = { |
733 |
> |
() -> invokeAll(h), |
734 |
> |
() -> invokeAll(f, g, h), |
735 |
> |
() -> invokeAll(f, h, g), |
736 |
> |
() -> invokeAll(h, f, g), |
737 |
> |
}; |
738 |
> |
assertThrows(NullPointerException.class, throwingActions); |
739 |
|
}}; |
740 |
|
testInvokeOnPool(mainPool(), a); |
741 |
|
} |