Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        try {
          Maps.toMap((Iterable<String>) strings, Functions.constant("foo"));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testToMapWithNullValues() {
        Iterable<String> strings = ImmutableList.of("one", "two", "three");
        try {
          Maps.toMap(strings, Functions.constant(null));
          fail();
        } catch (NullPointerException expected) {
        }
    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