Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testComputeIfPresent_error (0.09 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        // ensure no zombie entry remains
        cache.asMap().computeIfPresent(1, (key, value) -> null);
        assertThat(notifications).hasSize(1);
        CacheTesting.checkEmpty(cache);
      }
    
      public void testComputeIfPresent_error() {
        Cache<String, String> cache = CacheBuilder.newBuilder().build();
        cache.put(key, "1");
        assertThrows(
            Error.class,
            () ->
                cache
                    .asMap()
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top