Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testPutIfAbsent_nullValueUnsupportedAndKeyAbsent (0.16 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

            "Should not contain null key after unsupported putIfAbsent(null, value)");
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      public void testPutIfAbsent_nullValueUnsupportedAndKeyAbsent() {
        assertThrows(NullPointerException.class, () -> getMap().putIfAbsent(k3(), null));
        expectUnchanged();
        expectNullValueMissingWhenNullValuesUnsupported(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 02:04:51 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

            "Should not contain null key after unsupported putIfAbsent(null, value)");
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      public void testPutIfAbsent_nullValueUnsupportedAndKeyAbsent() {
        assertThrows(NullPointerException.class, () -> getMap().putIfAbsent(k3(), null));
        expectUnchanged();
        expectNullValueMissingWhenNullValuesUnsupported(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 02:04:51 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top