Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testAdd_laterFewWithSuccess (0.24 sec)

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

        when(backingMap.get(KEY)).thenReturn(null);
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(null);
    
        assertEquals(0, multiset.add(KEY, COUNT));
      }
    
      public void testAdd_laterFewWithSuccess() {
        int INITIAL_COUNT = 32;
        int COUNT_TO_ADD = 400;
    
        AtomicInteger initial = new AtomicInteger(INITIAL_COUNT);
        when(backingMap.get(KEY)).thenReturn(initial);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        when(backingMap.get(KEY)).thenReturn(null);
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(null);
    
        assertEquals(0, multiset.add(KEY, COUNT));
      }
    
      public void testAdd_laterFewWithSuccess() {
        int INITIAL_COUNT = 32;
        int COUNT_TO_ADD = 400;
    
        AtomicInteger initial = new AtomicInteger(INITIAL_COUNT);
        when(backingMap.get(KEY)).thenReturn(initial);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
Back to top