Searched refs:future2 (Results 1 – 2 of 2) sorted by relevance
110 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel() local111 assertThat(future2.get()).isEqualTo(5); in testWriteToParcel()122 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel_Exception() local124 expectThrows(ExecutionException.class, future2::get); in testWriteToParcel_Exception()140 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel_Incomplete() local141 future2.complete(5); in testWriteToParcel_Incomplete()152 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel_Incomplete_Exception() local153 future2.completeExceptionally(new UnsupportedOperationException()); in testWriteToParcel_Incomplete_Exception()
85 val future2 = CompletableFuture<Int>() regex90 future2.complete(result)93 assertThat(future2.getSoon()).isEqualTo(RESULT_FAILURE)