Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testRemove_unsupportedAbsent (0.12 sec)

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

        assertThrows(UnsupportedOperationException.class, () -> getMap().remove(k0(), v0()));
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_unsupportedAbsent() {
        try {
          assertFalse(getMap().remove(k0(), v3()));
        } catch (UnsupportedOperationException tolerated) {
          // since the operation would be a no-op, the exception is not required
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top