Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testAsMapEmpty (0.19 sec)

  1. 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());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
Back to top