Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testPutAll (0.35 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(0L, map.get(key));
        assertTrue(map.containsKey(key));
    
        assertEquals(0L, map.put(key, value));
        assertEquals(value, map.get(key));
      }
    
      public void testPutAll() {
        Map<String, Long> in = ImmutableMap.of("1", 1L, "2", 2L, "3", 3L);
        AtomicLongMap<String> map = AtomicLongMap.create();
        assertTrue(map.isEmpty());
        assertEquals(0, map.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            assertThat(m.get("2"), is(nullValue()));
            assertThat(m.getAt(0), is("d"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPutAll() throws Exception {
            Map<String, String> m = new HashMap<String, String>();
            m.put("3", "test3");
            m.put("4", "test4");
            map.putAll(m);
            assertThat(map.get("3"), is("test3"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.put(2, 8);
    
        cache.invalidateAll();
    
        assertEquals(2, stats[0]);
        assertEquals(2, stats[1]);
        assertEquals(4, stats[2]);
        assertEquals(3, stats[3]);
      }
    
      public void testPutAll() {
        Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build();
    
        cache.putAll(ImmutableMap.of(10, 20, 30, 50, 60, 90));
    
        assertEquals(Integer.valueOf(20), cache.getIfPresent(10));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

              test.put(range1, 1);
              test.put(range2, 2);
              test.put(range3, 3);
              verify(model, test);
            }
          }
        }
      }
    
      public void testPutAll() {
        for (Range<Integer> range1 : RANGES) {
          for (Range<Integer> range2 : RANGES) {
            for (Range<Integer> range3 : RANGES) {
              Map<Integer, Integer> model = Maps.newHashMap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/BloomFilterTest.java

            boolean mightContain = bf.mightContain(value);
            boolean put = bf.put(value);
            assertTrue(mightContain != put);
          }
        }
      }
    
      public void testPutAll() {
        int element1 = 1;
        int element2 = 2;
    
        BloomFilter<Integer> bf1 = BloomFilter.create(Funnels.integerFunnel(), 100);
        bf1.put(element1);
        assertTrue(bf1.mightContain(element1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top