Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testSetCount_asRemove (0.07 seconds)

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

        when(backingMap.get(KEY)).thenReturn(current);
    
        assertEquals(initialCount, multiset.setCount(KEY, countToSet));
        assertEquals(countToSet, current.get());
      }
    
      public void testSetCount_asRemove() {
        int countToRemove = 40;
        AtomicInteger current = new AtomicInteger(countToRemove);
    
        when(backingMap.get(KEY)).thenReturn(current);
        when(backingMap.remove(KEY, current)).thenReturn(true);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.3K bytes
    - Click Count (0)
Back to Top