- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testCopyOfEmptyMap (0.09 sec)
-
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
} private static <T extends @Nullable Object> Entry<T, T> entry(T key, T value) { return new AbstractMap.SimpleImmutableEntry<>(key, value); } public void testCopyOfEmptyMap() { ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(Collections.<String, Integer>emptyMap()); assertEquals(Collections.<String, Integer>emptyMap(), copy);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
@SuppressWarnings("DistinctVarargsChecker") public void testOfWithDuplicateKey() { assertThrows(IllegalArgumentException.class, () -> ImmutableSortedMap.of("one", 1, "one", 1)); } public void testCopyOfEmptyMap() { ImmutableSortedMap<String, Integer> copy = ImmutableSortedMap.copyOf(Collections.<String, Integer>emptyMap()); assertEquals(Collections.<String, Integer>emptyMap(), copy);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
} public void testOfWithDuplicateKey() { assertThrows(IllegalArgumentException.class, () -> ImmutableMap.of("one", 1, "one", 1)); } public void testCopyOfEmptyMap() { ImmutableMap<String, Integer> copy = ImmutableMap.copyOf(Collections.<String, Integer>emptyMap()); assertEquals(Collections.<String, Integer>emptyMap(), copy);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36.7K bytes - Viewed (0)