Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testReplaceConditional (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

        assertThat(map.replace("bar", 3)).isNull();
        assertEquals(Integer.valueOf(2), map.get("foo"));
        assertFalse(map.containsKey("bar"));
      }
    
      public void testReplaceConditional() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertFalse(map.replace("foo", 2, 3));
        assertFalse(map.replace("bar", 1, 2));
        assertEquals(Integer.valueOf(1), map.get("foo"));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 2.5K bytes
    - Click Count (0)
Back to Top