Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testIndex_nullValue (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

            NullPointerException.class,
            () -> {
              ImmutableListMultimap<Object, Integer> unused =
                  fluent(1, 2, 3).index(Functions.constant(null));
            });
      }
    
      public void testIndex_nullValue() {
        assertThrows(
            NullPointerException.class,
            () -> {
              ImmutableListMultimap<String, Integer> unused =
                  fluent(1, null, 2).index(Functions.constant("foo"));
    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

              }
            };
    
        Multimap<Integer, String> index = Multimaps.index(badGuys, stringLengthFunction);
    
        assertEquals(expectedIndex, index);
      }
    
      public void testIndex_nullValue() {
        List<@Nullable Integer> values = Arrays.asList(1, null);
        assertThrows(
            NullPointerException.class,
            () -> Multimaps.index((List<Integer>) values, Functions.identity()));
      }
    
    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