- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 76 for is_true (0.4 seconds)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java
closeMethod = wrapper.getClass().getMethod("close"); } catch (NoSuchMethodException e) { assertThat(isAndroid() || isBeforeJava19()).isTrue(); return; // close() doesn't exist, so we can't test it. } closeMethod.invoke(wrapper); assertThat(delegate.isTerminated()).isTrue(); } private static boolean isAndroid() { return System.getProperty("java.runtime.name", "").contains("Android"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.9K bytes - Click Count (0) -
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)