Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testAsMapEmpty (0.08 seconds)

  1. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(ImmutableMap.of("one", 3, "two", 3, "three", 5), map);
        assertEquals(Integer.valueOf(3), map.remove("two"));
        assertThat(strings).containsExactly("one", "three").inOrder();
      }
    
      public void testAsMapEmpty() {
        Set<String> strings = ImmutableSet.of();
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
Back to Top