170 |
|
try { |
171 |
|
new ForkJoinPool(-1); |
172 |
|
shouldThrow(); |
173 |
< |
} |
174 |
< |
catch (IllegalArgumentException success) {} |
173 |
> |
} catch (IllegalArgumentException success) {} |
174 |
|
} |
175 |
|
|
176 |
|
/** |
180 |
|
try { |
181 |
|
new ForkJoinPool(1, null); |
182 |
|
shouldThrow(); |
183 |
< |
} catch (NullPointerException success) { |
185 |
< |
} |
183 |
> |
} catch (NullPointerException success) {} |
184 |
|
} |
185 |
|
|
186 |
|
|
590 |
|
Object result = future.get(); |
591 |
|
shouldThrow(); |
592 |
|
} catch (ExecutionException success) { |
593 |
+ |
assertTrue(success.getCause() instanceof IndexOutOfBoundsException); |
594 |
|
} finally { |
595 |
|
Policy.setPolicy(savedPolicy); |
596 |
|
} |
605 |
|
TrackedShortRunnable task = null; |
606 |
|
Future<?> future = e.submit(task); |
607 |
|
shouldThrow(); |
608 |
< |
} catch (NullPointerException success) { |
610 |
< |
} |
608 |
> |
} catch (NullPointerException success) {} |
609 |
|
} |
610 |
|
|
611 |
|
|
618 |
|
StringTask t = null; |
619 |
|
Future<String> future = e.submit(t); |
620 |
|
shouldThrow(); |
621 |
< |
} catch (NullPointerException success) { |
624 |
< |
} |
621 |
> |
} catch (NullPointerException success) {} |
622 |
|
} |
623 |
|
|
624 |
|
|
663 |
|
}}).get(); |
664 |
|
shouldThrow(); |
665 |
|
} catch (ExecutionException success) { |
666 |
+ |
assertTrue(success.getCause() instanceof ArithmeticException); |
667 |
|
} |
668 |
+ |
|
669 |
|
joinPool(p); |
670 |
|
} |
671 |
|
|
747 |
|
e.invokeAny(l); |
748 |
|
shouldThrow(); |
749 |
|
} catch (ExecutionException success) { |
750 |
+ |
assertTrue(success.getCause() instanceof NullPointerException); |
751 |
|
} finally { |
752 |
|
joinPool(e); |
753 |
|
} |
829 |
|
future.get(); |
830 |
|
shouldThrow(); |
831 |
|
} catch (ExecutionException success) { |
832 |
+ |
assertTrue(success.getCause() instanceof NullPointerException); |
833 |
|
} finally { |
834 |
|
joinPool(e); |
835 |
|
} |
927 |
|
e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS); |
928 |
|
shouldThrow(); |
929 |
|
} catch (ExecutionException success) { |
930 |
+ |
assertTrue(success.getCause() instanceof NullPointerException); |
931 |
|
} finally { |
932 |
|
joinPool(e); |
933 |
|
} |
1026 |
|
future.get(); |
1027 |
|
shouldThrow(); |
1028 |
|
} catch (ExecutionException success) { |
1029 |
+ |
assertTrue(success.getCause() instanceof NullPointerException); |
1030 |
|
} finally { |
1031 |
|
joinPool(e); |
1032 |
|
} |