62 |
|
assertTrue(f.toString().matches(".*\\[.*Not completed.*\\]")); |
63 |
|
try { |
64 |
|
assertNull(f.getNow(null)); |
65 |
< |
} catch (Exception fail) { threadUnexpectedException(fail); } |
65 |
> |
} catch (Throwable fail) { threadUnexpectedException(fail); } |
66 |
|
try { |
67 |
|
f.get(randomExpiredTimeout(), randomTimeUnit()); |
68 |
|
shouldThrow(); |
78 |
|
assertEquals(value, f.join()); |
79 |
|
assertEquals(value, f.getNow(null)); |
80 |
|
assertEquals(value, f.get()); |
81 |
< |
} catch (Exception fail) { threadUnexpectedException(fail); } |
81 |
> |
} catch (Throwable fail) { threadUnexpectedException(fail); } |
82 |
|
assertTrue(f.isDone()); |
83 |
|
assertFalse(f.isCancelled()); |
84 |
|
assertFalse(f.isCompletedExceptionally()); |