Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for checkEmpty (0.24 seconds)

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

        for (LoadingCache<Object, Object> cache : caches()) {
          checkEmpty(cache);
        }
      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
          cache.getUnchecked("b");
          cache.invalidate("a");
          cache.invalidate("b");
          cache.invalidate(0);
          checkEmpty(cache);
        }
      }
    
      public void testInvalidateAll_empty() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.CacheTesting.checkEmpty;
    import static com.google.common.cache.TestingCacheLoaders.constantLoader;
    import static com.google.common.cache.TestingCacheLoaders.exceptionLoader;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertThat(keys.remove(key)).isTrue();
            assertThat(keys.remove(key)).isFalse();
            assertThat(keys.contains(key)).isFalse();
          }
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testValues_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Collection<Object> values = cache.asMap().values();
    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)
  4. guava-tests/test/com/google/common/collect/QueuesTest.java

        }
      }
    
      public void testEmpty() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
          checkEmpty(q);
        }
      }
    
      private void checkEmpty(BlockingQueue<Object> q) {
        assertDrained(q);
      }
    
      public void testNegativeMaxElements() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        cache.asMap().computeIfPresent(1, (key, value) -> null);
        assertThat(notifications).hasSize(1);
        CacheTesting.checkEmpty(cache);
    
        // ensure no zombie entry remains
        cache.asMap().computeIfPresent(1, (key, value) -> null);
        assertThat(notifications).hasSize(1);
        CacheTesting.checkEmpty(cache);
      }
    
      public void testComputeIfPresent_error() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        Object key = new Object();
        assertThat(nullCache.getUnchecked(key)).isSameInstanceAs(key);
        assertThat(listener.getCount()).isEqualTo(1);
        assertThat(nullCache.size()).isEqualTo(0);
        CacheTesting.checkEmpty(nullCache.asMap());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // QueuingRemovalListener
      public void testRemovalNotification_clear() throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        Object key = new Object();
        assertThat(nullCache.getUnchecked(key)).isSameInstanceAs(key);
        assertThat(listener.getCount()).isEqualTo(1);
        assertThat(nullCache.size()).isEqualTo(0);
        CacheTesting.checkEmpty(nullCache.asMap());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // QueuingRemovalListener
      public void testRemovalNotification_clear() throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
Back to Top