41 |
|
import java.util.function.Predicate; |
42 |
|
import java.util.function.Supplier; |
43 |
|
|
44 |
– |
import junit.framework.AssertionFailedError; |
44 |
|
import junit.framework.Test; |
45 |
|
import junit.framework.TestSuite; |
46 |
|
|
4189 |
|
static void assertZero(CompletableFuture<?> f) { |
4190 |
|
try { |
4191 |
|
f.getNow(null); |
4192 |
< |
throw new AssertionFailedError("should throw"); |
4192 |
> |
throw new AssertionError("should throw"); |
4193 |
|
} catch (CompletionException success) { |
4194 |
|
assertTrue(success.getCause() instanceof ZeroException); |
4195 |
|
} |