Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 50 for is_true (0.05 seconds)

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

        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
        assertThat(future.setException(cause)).isTrue();
        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
        assertThat(future.cancel(false /* mayInterruptIfRunning */)).isTrue();
        assertCancelled(future, false);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
        assertThat(future.setException(cause)).isTrue();
        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
        assertThat(future.cancel(false /* mayInterruptIfRunning */)).isTrue();
        assertCancelled(future, false);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(segment.containsKey(key, hash)).isTrue();
        assertThat(segment.containsValue(value)).isTrue();
        assertThat(segment.containsValue(dummyValue)).isTrue();
    
        // expired
        dummy.setAccessTime(ticker.read() - 2);
        assertThat(segment.get(key, hash)).isNull();
        assertThat(segment.containsKey(key, hash)).isFalse();
        assertThat(segment.containsValue(value)).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(segment.containsKey(key, hash)).isTrue();
        assertThat(segment.containsValue(value)).isTrue();
        assertThat(segment.containsValue(dummyValue)).isTrue();
    
        // expired
        dummy.setAccessTime(ticker.read() - 2);
        assertThat(segment.get(key, hash)).isNull();
        assertThat(segment.containsKey(key, hash)).isFalse();
        assertThat(segment.containsValue(value)).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.containsKey(one)).isTrue();
        assertThat(map.containsValue(one)).isTrue();
        Object two = new Object();
        assertThat(map.replace(one, two)).isSameInstanceAs(one);
        assertThat(map.containsKey(one)).isTrue();
        assertThat(map.containsValue(one)).isFalse();
        Object three = new Object();
        assertThat(map.replace(one, two, three)).isTrue();
        assertThat(map.remove(one, three)).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.containsKey(one)).isTrue();
        assertThat(map.containsValue(one)).isTrue();
        Object two = new Object();
        assertThat(map.replace(one, two)).isSameInstanceAs(one);
        assertThat(map.containsKey(one)).isTrue();
        assertThat(map.containsValue(one)).isFalse();
        Object three = new Object();
        assertThat(map.replace(one, two, three)).isTrue();
        assertThat(map.remove(one, three)).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) {
            Entry<Object, Object> entry = warmed.get(i - WARMUP_MIN);
            assertThat(cache.asMap().containsKey(entry.getKey())).isTrue();
            assertThat(cache.asMap().containsValue(entry.getValue())).isTrue();
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(entry.getValue());
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.put(2456, 56);
        cache.put(2, 15);
    
        cache.invalidate(654);
    
        assertThat(containsKey(cache, 654)).isFalse();
        assertThat(containsKey(cache, 2456)).isTrue();
        assertThat(containsKey(cache, 2)).isTrue();
      }
    
      @Test
      public void invalidateAll() {
        Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build();
    
        cache.put(654, 2675);
        cache.put(2456, 56);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key = new Key(1);
          String value = key.toString();
          assertThat(cache.getUnchecked(key)).isSameInstanceAs(value);
          assertThat(cache.asMap().containsKey(key)).isTrue();
          assertThat(cache.asMap().containsValue(value)).isTrue();
          assertThat(cache.size()).isEqualTo(1);
        }
      }
    
      public void testClear() {
        for (LoadingCache<Key, String> cache : caches()) {
          Key key = new Key(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        super.tearDown();
        assertWithMessage("finishToValueAndCloserExecutor was shut down")
            .that(shutdownAndAwaitTermination(finishToValueAndCloserExecutor, 10, SECONDS))
            .isTrue();
      }
    
      public void testFinishToValueAndCloser_throwsIfCalledTwice() throws Exception {
        ClosingFuture<Closeable> closingFuture =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5.2K bytes
    - Click Count (0)
Back to Top