Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testUniqueIndexNullKey (0.1 seconds)

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

        assertThrows(
            NullPointerException.class,
            () -> Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1)));
      }
    
      /** Null keys aren't allowed either. */
      public void testUniqueIndexNullKey() {
        List<String> oneStringList = Lists.newArrayList("foo");
        assertThrows(
            NullPointerException.class,
            () -> Maps.uniqueIndex(oneStringList, Functions.constant(null)));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

        assertThrows(
            NullPointerException.class,
            () -> Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1)));
      }
    
      /** Null keys aren't allowed either. */
      public void testUniqueIndexNullKey() {
        List<String> oneStringList = Lists.newArrayList("foo");
        assertThrows(
            NullPointerException.class,
            () -> Maps.uniqueIndex(oneStringList, Functions.constant(null)));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 65K bytes
    - Click Count (0)
Back to Top