# | Line 3752 | Line 3752 | public class CompletableFutureTest exten | |
---|---|---|
3752 | } | |
3753 | ||
3754 | /** | |
3755 | – | * failedFuture(null) throws NPE |
3756 | – | */ |
3757 | – | public void testFailedFuture_null() { |
3758 | – | try { |
3759 | – | CompletableFuture<Integer> f = CompletableFuture.failedFuture(null); |
3760 | – | shouldThrow(); |
3761 | – | } catch (NullPointerException success) {} |
3762 | – | } |
3763 | – | |
3764 | – | /** |
3755 | * copy returns a CompletableFuture that is completed normally, | |
3756 | * with the same value, when source is. | |
3757 | */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |