Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for wasCalled (0.13 seconds)

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

          synchronized (monitor) {
            assertFalse(wasCalled);
            wasCalled = true;
            assertThat(result).isEqualTo(value);
          }
        }
    
        @Override
        public synchronized void onFailure(Throwable t) {
          synchronized (monitor) {
            assertFalse(wasCalled);
            wasCalled = true;
            assertThat(t).isEqualTo(failure);
          }
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

          synchronized (monitor) {
            assertFalse(wasCalled);
            wasCalled = true;
            assertThat(result).isEqualTo(value);
          }
        }
    
        @Override
        public synchronized void onFailure(Throwable t) {
          synchronized (monitor) {
            assertFalse(wasCalled);
            wasCalled = true;
            assertThat(t).isEqualTo(failure);
          }
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        boolean wasCalled() {
          return calledCountDown.getCount() == 0;
        }
    
        void waitForCall() throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        boolean wasCalled = false; // must be set in load()
        String keyPrefix = KEY_PREFIX;
        int valuePrefix = VALUE_PREFIX;
    
        WatchedCreatorLoader() {}
    
        void reset() {
          wasCalled = false;
        }
    
        boolean wasCalled() {
          return wasCalled;
        }
    
        void setKeyPrefix(String keyPrefix) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        boolean wasCalled() {
          return calledCountDown.getCount() == 0;
        }
    
        void waitForCall() throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          called.set(true);
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        boolean wasCalled() {
          return called.get();
        }
      }
    
      public void testAllAsList() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          called.set(true);
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        boolean wasCalled() {
          return called.get();
        }
      }
    
      public void testAllAsList() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  8. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        fail("Should detect problem in " + FailOnOneOfTwoConstructors.class.getSimpleName());
      }
    
      public static class NullBounds<T extends @Nullable Object, U extends T, X> {
        boolean xWasCalled;
    
        public void x(X x) {
          xWasCalled = true;
          checkNotNull(x);
        }
    
        public void t(T t) {
          fail("Method with parameter <T extends @Nullable Object> should not be called");
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 47.9K bytes
    - Click Count (0)
Back to Top