Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testIndex_nullKey (0.08 seconds)

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

                      public Integer apply(String input) {
                        return input.length();
                      }
                    });
        assertEquals(expected, index);
      }
    
      public void testIndex_nullKey() {
        assertThrows(
            NullPointerException.class,
            () -> {
              ImmutableListMultimap<Object, Integer> unused =
                  fluent(1, 2, 3).index(Functions.constant(null));
            });
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertThrows(
            NullPointerException.class,
            () -> Multimaps.index((List<Integer>) values, Functions.identity()));
      }
    
      public void testIndex_nullKey() {
        List<Integer> values = Arrays.asList(1, 2);
        assertThrows(
            NullPointerException.class, () -> Multimaps.index(values, Functions.constant(null)));
      }
    
      @GwtIncompatible // untested
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 39.2K bytes
    - Click Count (0)
Back to Top