Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSuccessful (0.31 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

    import org.jspecify.annotations.Nullable;
    
    /** 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top