- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testOfWithDuplicateKey (0.12 seconds)
-
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
assertThrows(NullPointerException.class, () -> ImmutableBiMap.of("one", 1, "two", null)); } @SuppressWarnings({"AlwaysThrows", "DistinctVarargsChecker"}) public void testOfWithDuplicateKey() { IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> ImmutableBiMap.of("one", 1, "one", 1)); assertThat(expected).hasMessageThat().contains("one"); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
assertThrows(NullPointerException.class, () -> ImmutableSortedMap.of("one", 1, "two", null)); } @SuppressWarnings("DistinctVarargsChecker") public void testOfWithDuplicateKey() { assertThrows(IllegalArgumentException.class, () -> ImmutableSortedMap.of("one", 1, "one", 1)); } public void testCopyOfEmptyMap() { ImmutableSortedMap<String, Integer> copy =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0)