Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testUniqueIndexNullValue (0.17 sec)

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

          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).contains("Multimaps.index");
        }
      }
    
      /** Null values are not allowed. */
      public void testUniqueIndexNullValue() {
        List<@Nullable String> listWithNull = Lists.newArrayList((String) null);
        try {
          Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1));
          fail();
    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