Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testPut_nullValueSupported (0.57 sec)

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

        expectNullValueMissingWhenNullValuesUnsupported(
            "Should not contain null after unsupported putIfAbsent(present, null)");
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPut_nullValueSupported() {
        Entry<K, V> nullValueEntry = entry(k3(), null);
        assertNull(
            "putIfAbsent(key, null) should return null",
            getMap().putIfAbsent(nullValueEntry.getKey(), nullValueEntry.getValue()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        expectNullKeyMissingWhenNullKeysUnsupported(
            "Should not contain null key after unsupported put(null, value)");
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPut_nullValueSupported() {
        assertNull("put(key, null) should return null", put(nullValueEntry));
        expectAdded(nullValueEntry);
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

        expectNullValueMissingWhenNullValuesUnsupported(
            "Should not contain null after unsupported putIfAbsent(present, null)");
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPut_nullValueSupported() {
        Entry<K, V> nullValueEntry = entry(k3(), null);
        assertNull(
            "putIfAbsent(key, null) should return null",
            getMap().putIfAbsent(nullValueEntry.getKey(), nullValueEntry.getValue()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        expectNullKeyMissingWhenNullKeysUnsupported(
            "Should not contain null key after unsupported put(null, value)");
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPut_nullValueSupported() {
        assertNull("put(key, null) should return null", put(nullValueEntry));
        expectAdded(nullValueEntry);
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top