Removing Future.exception plus starting to remove Future.result

This commit is contained in:
Viktor Klang 2011-12-12 12:41:56 +01:00
parent 53e8373b93
commit 0b6a1a0e54
10 changed files with 36 additions and 56 deletions

View file

@ -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