- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testSuccessful (0.05 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java
import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Futures#getDone}. */ @GwtCompatible @NullUnmarked public class FuturesGetDoneTest extends TestCase { public void testSuccessful() throws ExecutionException { assertThat(getDone(immediateFuture("a"))).isEqualTo("a"); } public void testSuccessfulNull() throws ExecutionException {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 01:35:55 UTC 2025 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
import org.jspecify.annotations.Nullable; /** Test case for {@link TrustedListenableFutureTask}. */ @NullMarked @GwtCompatible public class TrustedListenableFutureTaskTest extends TestCase { public void testSuccessful() throws Exception { TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2)); assertFalse(task.isDone()); task.run(); assertTrue(task.isDone());Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.2K bytes - Viewed (0)