Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for testEmpty (0.07 sec)

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

          assertEquals(0, drain(q, ImmutableList.of(), 0, 10, MILLISECONDS, interruptibly));
        }
      }
    
      public void testEmpty() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
          testEmpty(q);
        }
      }
    
      private void testEmpty(BlockingQueue<Object> q) {
        assertDrained(q);
      }
    
      public void testNegativeMaxElements() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheStatsTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link CacheStats}.
     *
     * @author Charles Fry
     */
    public class CacheStatsTest extends TestCase {
    
      public void testEmpty() {
        CacheStats stats = new CacheStats(0, 0, 0, 0, 0, 0);
        assertEquals(0, stats.requestCount());
        assertEquals(0, stats.hitCount());
        assertThat(stats.hitRate()).isEqualTo(1.0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

                    CollectionFeature.KNOWN_ORDER,
                    CollectionSize.ANY,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
      public void testEmpty() {
        assertEquals(0, ImmutableTypeToInstanceMap.of().size());
      }
    
      public void testPrimitiveAndWrapper() {
        ImmutableTypeToInstanceMap<Number> map =
            ImmutableTypeToInstanceMap.<Number>builder()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

     * Unit tests for {@link Crc32c}. Known test values are from RFC 3720, Section B.4.
     *
     * @author Patrick Costello
     * @author Kurt Alfred Kluever
     */
    public class Crc32cHashFunctionTest extends TestCase {
      public void testEmpty() {
        assertCrc(0, new byte[0]);
      }
    
      public void testZeros() {
        // Test 32 byte array of 0x00.
        byte[] zeros = new byte[32];
        assertCrc(0x8a9136aa, zeros);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

     * Unit tests for {@link Crc32c}. Known test values are from RFC 3720, Section B.4.
     *
     * @author Patrick Costello
     * @author Kurt Alfred Kluever
     */
    public class Crc32cHashFunctionTest extends TestCase {
      public void testEmpty() {
        assertCrc(0, new byte[0]);
      }
    
      public void testZeros() {
        // Test 32 byte array of 0x00.
        byte[] zeros = new byte[32];
        assertCrc(0x8a9136aa, zeros);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

    import junit.framework.TestCase;
    
    /**
     * {@link LoadingCache} tests that deal with empty caches.
     *
     * @author mike nonemacher
     */
    
    public class EmptyCachesTest extends TestCase {
    
      public void testEmpty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          checkEmpty(cache);
        }
      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

    import junit.framework.TestCase;
    
    /**
     * {@link LoadingCache} tests that deal with empty caches.
     *
     * @author mike nonemacher
     */
    
    public class EmptyCachesTest extends TestCase {
    
      public void testEmpty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          checkEmpty(cache);
        }
      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
          sum += i;
        }
        assertEquals(ITERATIONS, map.size());
        assertEquals(sum, map.sum());
      }
    
      public void testEmpty() {
        AtomicLongMap<String> map = AtomicLongMap.create();
        assertEquals(0L, map.get("a"));
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
        assertFalse(map.remove("a", 1L));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(original);
        assertMapEquals(copy, "one", 1, "two", 2, "three", 3);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
      }
    
      public void testEmpty() {
        ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.of();
        assertEquals(Collections.<String, Integer>emptyMap(), bimap);
        assertEquals(Collections.<Integer, String>emptyMap(), bimap.inverse());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/FileLocationTest.java

                assertEquals("\\", fl.getUNCPath());
                assertEquals("smb://", fl.getCanonicalURL());
                assertEquals("/", fl.getURLPath());
            }
        }
    
    
        @Test
        public void testEmpty () throws MalformedURLException, CIFSException {
            try ( SmbResource p = new SmbFile("smb:", getContext()) ) {
                SmbResourceLocator fl = p.getLocator();
                assertNull(fl.getServer());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
Back to top