• Home
  • Raw
  • Download

Lines Matching refs:future

42     ListenableFuture<String> future = Futures.immediateFuture("monkey");  in createFutureProduced_success()  local
43 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_success()
49 ListenableFuture<String> future = Futures.immediateFailedFuture(new RuntimeException("monkey")); in createFutureProduced_failure() local
50 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_failure()
59 ListenableFuture<String> future = SettableFuture.create(); in createFutureProduced_cancelPropagatesBackwards() local
60 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_cancelPropagatesBackwards()
63 assertThat(future.isCancelled()).isTrue(); in createFutureProduced_cancelPropagatesBackwards()
67 ListenableFuture<String> future = SettableFuture.create(); in createFutureProduced_cancelDoesNotPropagateForwards() local
68 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_cancelDoesNotPropagateForwards()
70 future.cancel(false); in createFutureProduced_cancelDoesNotPropagateForwards()
87 ListenableFuture<String> future = Futures.immediateFuture("monkey"); in createFutureSingletonSet_success() local
88 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_success()
94 ListenableFuture<String> future = Futures.immediateFailedFuture(new RuntimeException("monkey")); in createFutureSingletonSet_failure() local
95 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_failure()
107 ListenableFuture<Set<String>> future = in allAsSet_success() local
111 assertThat(future.isDone()).isTrue(); in allAsSet_success()
112 assertThat(future.get()).containsExactly("monkey", "gorilla"); in allAsSet_success()
117 ListenableFuture<Set<String>> future = in allAsSet_failure() local
122 assertThat(future.isDone()).isTrue(); in allAsSet_failure()
124 future.get(); in allAsSet_failure()