Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TestingExecutors (0.17 sec)

  1. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

    import java.util.concurrent.TimeUnit;
    
    /**
     * Factory methods for {@link ExecutorService} for testing.
     *
     * @author Chris Nokleberg
     * @since 14.0
     */
    @GwtIncompatible
    public final class TestingExecutors {
      private TestingExecutors() {}
    
      /**
       * Returns a {@link ScheduledExecutorService} that never executes anything.
       *
       * <p>The {@code shutdownNow} method of the returned executor always returns an empty list despite
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

    import java.util.concurrent.TimeUnit;
    
    /**
     * Factory methods for {@link ExecutorService} for testing.
     *
     * @author Chris Nokleberg
     * @since 14.0
     */
    @GwtIncompatible
    public final class TestingExecutors {
      private TestingExecutors() {}
    
      /**
       * Returns a {@link ScheduledExecutorService} that never executes anything.
       *
       * <p>The {@code shutdownNow} method of the returned executor always returns an empty list despite
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

              }
            };
        ScheduledFuture<?> future =
            TestingExecutors.noOpScheduledExecutor().schedule(task, 10, MILLISECONDS);
        Thread.sleep(20);
        assertFalse(taskDone);
        assertFalse(future.isDone());
      }
    
      public void testNoOpScheduledExecutorShutdown() {
        ListeningScheduledExecutorService executor = TestingExecutors.noOpScheduledExecutor();
        assertFalse(executor.isShutdown());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

              }
            };
        ScheduledFuture<?> future =
            TestingExecutors.noOpScheduledExecutor().schedule(task, 10, MILLISECONDS);
        Thread.sleep(20);
        assertFalse(taskDone);
        assertFalse(future.isDone());
      }
    
      public void testNoOpScheduledExecutorShutdown() {
        ListeningScheduledExecutorService executor = TestingExecutors.noOpScheduledExecutor();
        assertFalse(executor.isShutdown());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.TearDown;
    import com.google.common.testing.TearDownStack;
    import com.google.common.util.concurrent.testing.TestingExecutors;
    import java.lang.Thread.UncaughtExceptionHandler;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.Executor;
    import java.util.concurrent.ExecutorService;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/ListeningExecutorService.java

     * from an existing {@link ExecutorService}, call {@link
     * MoreExecutors#listeningDecorator(ExecutorService)}.
     *
     * @author Chris Povirk
     * @since 10.0
     */
    @DoNotMock(
        "Use TestingExecutors.sameThreadScheduledExecutor, or wrap a real Executor from "
            + "java.util.concurrent.Executors with MoreExecutors.listeningDecorator")
    @GwtIncompatible
    public interface ListeningExecutorService extends ExecutorService {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    
    /**
     * A ScheduledExecutorService that executes all scheduled actions immediately in the calling thread.
     *
     * <p>See {@link TestingExecutors#sameThreadScheduledExecutor()} for a full list of constraints.
     *
     * @author John Sirois
     * @author Zach van Schouwen
     */
    @GwtIncompatible
    // TODO(cpovirk): Make this final (but that may break Mockito spy calls).
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    
    /**
     * A ScheduledExecutorService that executes all scheduled actions immediately in the calling thread.
     *
     * <p>See {@link TestingExecutors#sameThreadScheduledExecutor()} for a full list of constraints.
     *
     * @author John Sirois
     * @author Zach van Schouwen
     */
    @GwtIncompatible
    // TODO(cpovirk): Make this final (but that may break Mockito spy calls).
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top