- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testRemove_zeroFromSome (0.14 sec)
-
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() { final int INITIAL_COUNT = 14; when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT)); assertEquals(INITIAL_COUNT, multiset.remove(KEY, 0)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0) -
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() { final int INITIAL_COUNT = 14; when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT)); assertEquals(INITIAL_COUNT, multiset.remove(KEY, 0)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 14.2K bytes - Viewed (0)