Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for spy (0.01 seconds)

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

        abstractFuture.set(DATA1);
        ExecutorSpy spy = new ExecutorSpy(directExecutor());
        ListenableFuture<String> listenableFuture = listenInPoolThread(abstractFuture, spy);
    
        SingleCallListener singleCallListener = new SingleCallListener();
        singleCallListener.expectCall();
    
        assertFalse(spy.wasExecuted);
        assertFalse(singleCallListener.wasCalled());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        abstractFuture.set(DATA1);
        ExecutorSpy spy = new ExecutorSpy(directExecutor());
        ListenableFuture<String> listenableFuture = listenInPoolThread(abstractFuture, spy);
    
        SingleCallListener singleCallListener = new SingleCallListener();
        singleCallListener.expectCall();
    
        assertFalse(spy.wasExecuted);
        assertFalse(singleCallListener.wasCalled());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        FunctionSpy<Object, String> spy = new FunctionSpy<>(x -> "bar");
        Future<String> input = immediateFuture("foo");
        Future<String> transformed = lazyTransform(input, spy);
        spy.verifyCallCount(0);
        assertThat(getDone(transformed)).isEqualTo("bar");
        spy.verifyCallCount(1);
        assertThat(getDone(transformed)).isEqualTo("bar");
        spy.verifyCallCount(2);
      }
    
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        FunctionSpy<Object, String> spy = new FunctionSpy<>(x -> "bar");
        Future<String> input = immediateFuture("foo");
        Future<String> transformed = lazyTransform(input, spy);
        spy.verifyCallCount(0);
        assertThat(getDone(transformed)).isEqualTo("bar");
        spy.verifyCallCount(1);
        assertThat(getDone(transformed)).isEqualTo("bar");
        spy.verifyCallCount(2);
      }
    
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
Back to Top