Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testKeySet (0.27 sec)

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

      }
    
      /* ---------------- Key Set -------------- */
    
      public void testKeySet_nullToArray() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
          assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null));
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_addNotSupported() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

      }
    
      /* ---------------- Key Set -------------- */
    
      public void testKeySet_nullToArray() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
          assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null));
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_addNotSupported() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java

     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultimapKeySetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testKeySet() {
        for (Entry<K, V> entry : getSampleElements()) {
          assertTrue(multimap().keySet().contains(entry.getKey()));
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java

     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultimapKeySetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testKeySet() {
        for (Entry<K, V> entry : getSampleElements()) {
          assertTrue(multimap().keySet().contains(entry.getKey()));
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      public void testPut() {
        create().put(null, null);
      }
    
      public void testPutAll() {
        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
        assertTrue(keySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      public void testPut() {
        create().put(null, null);
      }
    
      public void testPutAll() {
        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
        assertTrue(keySet instanceof SynchronizedSet);
        assertSame(mutex, ((SynchronizedSet<?>) keySet).mutex);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertFalse(cache.asMap().remove(key, -1));
            assertFalse(cache.asMap().containsKey(key));
          }
          checkEmpty(cache);
        }
      }
    
    
      public void testKeySet_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
          List<Entry<Object, Object>> warmed = warmUp(cache);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertFalse(cache.asMap().remove(key, -1));
            assertFalse(cache.asMap().containsKey(key));
          }
          checkEmpty(cache);
        }
      }
    
    
      public void testKeySet_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
          List<Entry<Object, Object>> warmed = warmUp(cache);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        try {
          bimap.forcePut("three", 3);
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testKeySet() {
        ImmutableBiMap<String, Integer> bimap =
            ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4));
        Set<String> keys = bimap.keySet();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        try {
          bimap.forcePut("three", 3);
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testKeySet() {
        ImmutableBiMap<String, Integer> bimap =
            ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4));
        Set<String> keys = bimap.keySet();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top