- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testCompletedFuture (0.13 sec)
-
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java
assertEquals(1, latch.getCount()); assertFalse(future.isDone()); assertFalse(future.isCancelled()); } public void tearDown() { exec.shutdown(); } public void testCompletedFuture(@Nullable Object expectedValue) throws InterruptedException, ExecutionException { assertTrue(future.isDone()); assertFalse(future.isCancelled()); assertTrue(latch.await(5, SECONDS));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertThrows(TimeoutException.class, () -> future.get(5, MILLISECONDS)); } public void testSetValue() throws Exception { assertTrue(future.set("value")); tester.testCompletedFuture("value"); } public void testSetFailure() throws Exception { assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertThrows(TimeoutException.class, () -> future.get(5, MILLISECONDS)); } public void testSetValue() throws Exception { assertTrue(future.set("value")); tester.testCompletedFuture("value"); } public void testSetFailure() throws Exception { assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 7.3K bytes - Viewed (0)