Removing Future.exception plus starting to remove Future.result
This commit is contained in:
parent
53e8373b93
commit
0b6a1a0e54
10 changed files with 36 additions and 56 deletions
|
|
@ -89,7 +89,7 @@ public class JavaFutureTests {
|
|||
Throwable exception = new NullPointerException();
|
||||
cf.completeWithException(exception);
|
||||
assertTrue(latch.await(5000, TimeUnit.MILLISECONDS));
|
||||
assertEquals(f.exception().get(), exception);
|
||||
assertEquals(f.value().get().left().get(), exception);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue