- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testGetIfPresent (0.12 sec)
-
guava-tests/test/com/google/common/cache/CacheManualTest.java
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import junit.framework.TestCase; /** @author Charles Fry */ public class CacheManualTest extends TestCase { public void testGetIfPresent() { Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build(); CacheStats stats = cache.stats(); assertEquals(0, stats.missCount()); assertEquals(0, stats.loadSuccessCount());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 5.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
* * @author Steve McKay */ @GwtIncompatible @J2ktIncompatible public class EnumsTest extends TestCase { private enum TestEnum { CHEETO, HONDA, POODLE, } public void testGetIfPresent() { assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO); assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0)