- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testCount_elementPresent (0.07 seconds)
-
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
protected void setUp() { backingMap = mock(ConcurrentMap.class); when(backingMap.isEmpty()).thenReturn(true); multiset = ConcurrentHashMultiset.create(backingMap); } public void testCount_elementPresent() { int COUNT = 12; when(backingMap.get(KEY)).thenReturn(new AtomicInteger(COUNT)); assertEquals(COUNT, multiset.count(KEY)); } public void testCount_elementAbsent() {
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)