Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for doNothing (0.1 sec)

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

        testExecutor.execute(doNothing());
        mock.assertLastMethodCalled("execute");
      }
    
      public void testSubmit() throws InterruptedException, ExecutionException {
        {
          MockExecutor mock = new MockExecutor();
          TestExecutor testExecutor = new TestExecutor(mock);
          Future<?> f = testExecutor.submit(doNothing());
          mock.assertLastMethodCalled("submit");
          f.get();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

        testExecutor.execute(doNothing());
        mock.assertLastMethodCalled("execute");
      }
    
      public void testSubmit() throws InterruptedException, ExecutionException {
        {
          MockExecutor mock = new MockExecutor();
          TestExecutor testExecutor = new TestExecutor(mock);
          Future<?> f = testExecutor.submit(doNothing());
          mock.assertLastMethodCalled("submit");
          f.get();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/AbstractFutureFootprintBenchmark.java

                  }
                }
              };
          thread.start();
          blockedThreads.add(thread);
        }
        for (int i = 0; i < numListeners; i++) {
          f.addListener(Runnables.doNothing(), directExecutor());
        }
        for (Thread thread : blockedThreads) {
          AbstractFutureBenchmarks.awaitWaiting(thread);
        }
        switch (state) {
          case NOT_DONE:
            break;
          case FINISHED:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

                new Runnable() {
                  @Override
                  public void run() {
                    executor.execute(Runnables.doNothing());
                  }
                });
        future.get(10, SECONDS);
        assertThrows(RejectedExecutionException.class, () -> executor.execute(Runnables.doNothing()));
        latch.countDown();
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> first.get(10, SECONDS));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

        assertThat(result).isEqualTo(RETURN_VALUE);
      }
    
      public void testRunWithTimeout_returnsWithoutException() throws Exception {
        timeLimiter.runWithTimeout(Runnables.doNothing(), DELAY_MS, MILLISECONDS);
      }
    
      public void testRunWithTimeout_wrapsUncheckedException() throws Exception {
        RuntimeException exception = new RuntimeException("test");
        UncheckedExecutionException e =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static com.google.common.util.concurrent.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.util.concurrent.Runnables.doNothing;
    import static com.google.common.util.concurrent.TestPlatform.getDoneFromTimeoutOverload;
    import static com.google.common.util.concurrent.TestPlatform.verifyGetOnPendingFuture;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

                new Runnable() {
                  @Override
                  public void run() {
                    executor.execute(Runnables.doNothing());
                  }
                });
        future.get(10, SECONDS);
        assertThrows(RejectedExecutionException.class, () -> executor.execute(Runnables.doNothing()));
        latch.countDown();
        ExecutionException expected =
            assertThrows(ExecutionException.class, () -> first.get(10, SECONDS));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

        assertThat(result).isEqualTo(RETURN_VALUE);
      }
    
      public void testRunWithTimeout_returnsWithoutException() throws Exception {
        timeLimiter.runWithTimeout(Runnables.doNothing(), DELAY_MS, MILLISECONDS);
      }
    
      public void testRunWithTimeout_wrapsUncheckedException() throws Exception {
        RuntimeException exception = new RuntimeException("test");
        UncheckedExecutionException e =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static com.google.common.util.concurrent.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.util.concurrent.Runnables.doNothing;
    import static com.google.common.util.concurrent.TestPlatform.getDoneFromTimeoutOverload;
    import static com.google.common.util.concurrent.TestPlatform.verifyGetOnPendingFuture;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        Future<?> possiblyIgnoredError = testExecutor.schedule(DO_NOTHING, 10, MINUTES);
        mock.assertLastMethodCalled("scheduleRunnable", 10, MINUTES);
    
        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
        Future<?> possiblyIgnoredError1 =
            testExecutor.schedule(Executors.callable(DO_NOTHING), 5, SECONDS);
        mock.assertLastMethodCalled("scheduleCallable", 5, SECONDS);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top