Searched refs:listenableFuture (Results 1 – 1 of 1) sorted by relevance
50 ListenableFuture<String> listenableFuture = immediateFuture(DATA1); in testListenInPoolThreadReturnsSameFuture() local51 assertSame(listenableFuture, listenInPoolThread(listenableFuture)); in testListenInPoolThreadReturnsSameFuture()60 ListenableFuture<String> listenableFuture = in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone() local68 assertTrue(listenableFuture.isDone()); // We call AbstractFuture#set above. in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()72 listenableFuture.addListener(singleCallListener, sameThreadExecutor()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()73 assertEquals(DATA1, listenableFuture.get()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()79 assertTrue(listenableFuture.isDone()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()88 ListenableFuture<String> listenableFuture = in testListenInPoolThreadUsesGivenExecutor() local96 assertFalse(listenableFuture.isDone()); in testListenInPoolThreadUsesGivenExecutor()98 listenableFuture.addListener(singleCallListener, executorService); in testListenInPoolThreadUsesGivenExecutor()[all …]