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

Comparing jsr166/src/test/tck/CompletableFutureTest.java (file contents):
Revision 1.189 by jsr166, Sat Oct 21 06:51:52 2017 UTC vs.
Revision 1.190 by jsr166, Wed Nov 8 02:21:43 2017 UTC

# Line 62 | Line 62 | public class CompletableFutureTest exten
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();
# Line 78 | Line 78 | public class CompletableFutureTest exten
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());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines