Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/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));
            });
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (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(value = "untested")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top