Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testPutIfAbsent_nullValueUnsupportedAndKeyAbsent (0.64 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 4.8K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top