Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testCount_elementAbsent (0.12 seconds)

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

      public void testCount_elementPresent() {
        int COUNT = 12;
        when(backingMap.get(KEY)).thenReturn(new AtomicInteger(COUNT));
    
        assertEquals(COUNT, multiset.count(KEY));
      }
    
      public void testCount_elementAbsent() {
        when(backingMap.get(KEY)).thenReturn(null);
    
        assertEquals(0, multiset.count(KEY));
      }
    
      public void testAdd_zero() {
        int INITIAL_COUNT = 32;
    
    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