Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testRemove_zeroFromSome (0.08 sec)

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

        // we shouldn't see any more map operations; CHM will now just update the AtomicInteger
    
        assertEquals(12, multiset.add(KEY, 3));
        assertEquals(15, existing.get());
      }
    
      public void testRemove_zeroFromSome() {
        int INITIAL_COUNT = 14;
        when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT));
    
        assertEquals(INITIAL_COUNT, multiset.remove(KEY, 0));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top