Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for testCount (0.18 sec)

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

        multiset = new ConcurrentHashMultiset<>(backingMap);
      }
    
      public void testCount_elementPresent() {
        final 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));
      }
    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)
  2. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        multiset = new ConcurrentHashMultiset<>(backingMap);
      }
    
      public void testCount_elementPresent() {
        final 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));
      }
    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)
  3. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

                Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE),
                Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE),
                2);
      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyPairedStats.count()).isEqualTo(0);
        assertThat(oneValueAccumulator.count()).isEqualTo(1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

                Collections.nCopies(MANY_VALUES_COUNT, ONE_VALUE),
                Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE),
                2);
      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyPairedStats.count()).isEqualTo(0);
        assertThat(oneValueAccumulator.count()).isEqualTo(1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/PairedStatsTest.java

    /**
     * Tests for {@link PairedStats}. This tests instances created by {@link
     * PairedStatsAccumulator#snapshot}.
     *
     * @author Pete Gillin
     */
    public class PairedStatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_PAIRED_STATS.count()).isEqualTo(0);
        assertThat(ONE_VALUE_PAIRED_STATS.count()).isEqualTo(1);
        assertThat(TWO_VALUES_PAIRED_STATS.count()).isEqualTo(2);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

    /**
     * Tests for {@link PairedStats}. This tests instances created by {@link
     * PairedStatsAccumulator#snapshot}.
     *
     * @author Pete Gillin
     */
    public class PairedStatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_PAIRED_STATS.count()).isEqualTo(0);
        assertThat(ONE_VALUE_PAIRED_STATS.count()).isEqualTo(1);
        assertThat(TWO_VALUES_PAIRED_STATS.count()).isEqualTo(2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        for (Method method : methods) {
          if (isAnyEnter(method) || isWaitFor(method)) {
            validateMethod(method);
            addTests(suite, method);
          }
        }
    
        assertEquals(980, suite.testCount());
    
        return suite;
      }
    
      /** A typical timeout value we'll use in the tests. */
      private static final long SMALL_TIMEOUT_MILLIS = 10;
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        for (Method method : methods) {
          if (isAnyEnter(method) || isWaitFor(method)) {
            validateMethod(method);
            addTests(suite, method);
          }
        }
    
        assertEquals(548, suite.testCount());
    
        return suite;
      }
    
      /** A typical timeout value we'll use in the tests. */
      private static final long SMALL_TIMEOUT_MILLIS = 10;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator;
      }
    
      public void testCount() {
        assertThat(emptyAccumulator.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyIterable.count()).isEqualTo(0);
        assertThat(emptyAccumulatorByAddAllEmptyStats.count()).isEqualTo(0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 34K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/StatsTest.java

    /**
     * Tests for {@link Stats}. This tests instances created by both {@link Stats#of} and {@link
     * StatsAccumulator#snapshot}.
     *
     * @author Pete Gillin
     */
    public class StatsTest extends TestCase {
    
      public void testCount() {
        assertThat(EMPTY_STATS_VARARGS.count()).isEqualTo(0);
        assertThat(EMPTY_STATS_ITERABLE.count()).isEqualTo(0);
        assertThat(ONE_VALUE_STATS.count()).isEqualTo(1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
Back to top