Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for testPutAll (0.14 sec)

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

        for (Table<Character, Integer, String> testInstance : getTestInstances()) {
          assertThrows(UnsupportedOperationException.class, () -> testInstance.put('a', 1, "blah"));
        }
      }
    
      public final void testPutAll() {
        for (Table<Character, Integer, String> testInstance : getTestInstances()) {
          assertThrows(
              UnsupportedOperationException.class,
              () -> testInstance.putAll(ImmutableTable.of('a', 1, "blah")));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

        Multimap<K, V> target = getSubjectGenerator().create();
        assertEquals(!multimap().isEmpty(), target.putAll(multimap()));
        assertEquals(multimap(), target);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll() {
        Multimap<K, V> source =
            getSubjectGenerator().create(mapEntry(k0(), v3()), mapEntry(k3(), v3()));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), v3()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

        Multimap<K, V> target = getSubjectGenerator().create();
        assertEquals(!multimap().isEmpty(), target.putAll(multimap()));
        assertEquals(multimap(), target);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll() {
        Multimap<K, V> source =
            getSubjectGenerator().create(mapEntry(k0(), v3()), mapEntry(k3(), v3()));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), v3()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        boolean unused = create().containsValue(null);
      }
    
      public void testGet() {
        create().get(null);
      }
    
      public void testPut() {
        create().put(null, null);
      }
    
      public void testPutAll() {
        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java

            assertThat(map.size(), is(1));
            assertThat(map.remove("dummy"), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testPutAll() throws Exception {
            final Map<String, String> m = new HashMap<String, String>();
            m.put("three", "3");
            m.put("four", "4");
            map.putAll(m);
            assertThat(map.get("THREE"), is("3"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        boolean unused = create().containsValue(null);
      }
    
      public void testGet() {
        create().get(null);
      }
    
      public void testPut() {
        create().put(null, null);
      }
    
      public void testPutAll() {
        create().putAll(new HashMap<String, Integer>());
      }
    
      public void testKeySet() {
        Map<String, Integer> map = create();
        Set<String> keySet = map.keySet();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top