Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestRunnable (0.17 sec)

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

        TestRunnable runnable2 = new TestRunnable();
        ListenableFuture<Integer> runnableFuture2 = e.submit(runnable2, 3);
        assertThat(runnableFuture2).isInstanceOf(TrustedListenableFutureTask.class);
        assertTrue(runnableFuture2.isDone());
        assertTrue(runnable2.run);
        assertEquals((Integer) 3, runnableFuture2.get());
      }
    
      private static class TestRunnable implements Runnable {
        boolean run = false;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

        TestRunnable runnable2 = new TestRunnable();
        ListenableFuture<Integer> runnableFuture2 = e.submit(runnable2, 3);
        assertThat(runnableFuture2).isInstanceOf(TrustedListenableFutureTask.class);
        assertTrue(runnableFuture2.isDone());
        assertTrue(runnable2.run);
        assertEquals((Integer) 3, runnableFuture2.get());
      }
    
      private static class TestRunnable implements Runnable {
        boolean run = false;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      private static final int INITIAL_DELAY = 10;
      private static final int DELAY = 20;
      private static final TimeUnit UNIT = MILLISECONDS;
    
      // Unique runnable object used for comparison.
      final Runnable testRunnable =
          new Runnable() {
            @Override
            public void run() {}
          };
      boolean called = false;
    
      private void assertSingleCallWithCorrectParameters(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      private static final int INITIAL_DELAY = 10;
      private static final int DELAY = 20;
      private static final TimeUnit UNIT = MILLISECONDS;
    
      // Unique runnable object used for comparison.
      final Runnable testRunnable =
          new Runnable() {
            @Override
            public void run() {}
          };
      boolean called = false;
    
      private void assertSingleCallWithCorrectParameters(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.5K bytes
    - Viewed (0)
Back to top