Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPutIfAbsent_nullValueUnsupportedAndKeyAbsent (0.44 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() {
        try {
          getMap().putIfAbsent(k3(), null);
          fail("putIfAbsent(key, null) should throw");
        } catch (NullPointerException expected) {
        }
        expectUnchanged();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 18:17:52 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top