- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for testKeySet (0.19 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") 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)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3K bytes - Viewed (0) -
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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
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); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
BiMap<String, Integer> bimap = ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2)); assertThrows(UnsupportedOperationException.class, () -> bimap.forcePut("three", 3)); } public void testKeySet() { ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4)); Set<String> keys = bimap.keySet();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.3K bytes - Viewed (0)