Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        assertEquals(INT_TO_STRING_MAP, outputMap);
      }
    
      /** Can't create the map if more than one value maps to the same key. */
      public void testUniqueIndexDuplicates() {
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> Maps.uniqueIndex(ImmutableSet.of("one", "uno"), Functions.constant(1)));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(INT_TO_STRING_MAP, outputMap);
      }
    
      /** Can't create the map if more than one value maps to the same key. */
      public void testUniqueIndexDuplicates() {
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> Maps.uniqueIndex(ImmutableSet.of("one", "uno"), Functions.constant(1)));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
Back to top