Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for FakeExecutorService (0.13 seconds)

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

      private Collection<? extends Callable<?>> recordedTasks;
      private long recordedTimeout;
      private TimeUnit recordedTimeUnit;
    
      private final ListeningExecutorService executorService = new FakeExecutorService();
    
      public void testInvokeAny() throws Exception {
        Set<Callable<String>> tasks = Collections.singleton(() -> "invokeAny");
    
        String result = executorService.invokeAny(tasks, Duration.ofSeconds(7));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java

      private Runnable recordedCommand;
      private long recordedDelay;
      private long recordedInterval;
      private TimeUnit recordedTimeUnit;
    
      private final ListeningScheduledExecutorService executorService = new FakeExecutorService();
    
      public void testScheduleRunnable() throws Exception {
        Runnable command = () -> {};
    
        ListenableScheduledFuture<?> future = executorService.schedule(command, Duration.ofSeconds(12));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 6.5K bytes
    - Click Count (0)
Back to Top