# | Line 729 | Line 729 | public class ForkJoinTask8Test extends J | |
---|---|---|
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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |