ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ForkJoinTask8Test.java
(Generate patch)

Comparing jsr166/src/test/tck/ForkJoinTask8Test.java (file contents):
Revision 1.8 by jsr166, Thu Jan 15 18:34:19 2015 UTC vs.
Revision 1.9 by jsr166, Sat Feb 7 17:43:38 2015 UTC

# 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      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines