Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for checkEmpty (0.1 sec)

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

            assertTrue(keys.contains(key));
            assertTrue(keys.remove(key));
            assertFalse(keys.remove(key));
            assertFalse(keys.contains(key));
          }
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testValues_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Collection<Object> values = cache.asMap().values();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertTrue(keys.contains(key));
            assertTrue(keys.remove(key));
            assertFalse(keys.remove(key));
            assertFalse(keys.contains(key));
          }
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testValues_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Collection<Object> values = cache.asMap().values();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertEquals(0, nullCache.size());
        Object key = new Object();
        assertSame(key, nullCache.getUnchecked(key));
        assertEquals(1, listener.getCount());
        assertEquals(0, nullCache.size());
        CacheTesting.checkEmpty(nullCache.asMap());
      }
    
      @GwtIncompatible // QueuingRemovalListener
      public void testRemovalNotification_clear() throws InterruptedException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          } catch (Exception e) {
            AssertionFailedError afe = new AssertionFailedError("Unexpected exception: " + e);
            afe.initCause(e);
            throw afe;
          }
        }
      }
    
      void checkEmpty(BlockingQueue<?> q) {
        try {
          assertTrue(q.isEmpty());
          assertEquals(0, q.size());
          assertNull(q.peek());
          assertNull(q.poll());
          assertNull(q.poll(0, MILLISECONDS));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          } catch (Exception e) {
            AssertionFailedError afe = new AssertionFailedError("Unexpected exception: " + e);
            afe.initCause(e);
            throw afe;
          }
        }
      }
    
      void checkEmpty(BlockingQueue<?> q) {
        try {
          assertTrue(q.isEmpty());
          assertEquals(0, q.size());
          assertNull(q.peek());
          assertNull(q.poll());
          assertNull(q.poll(0, MILLISECONDS));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top