Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for initMultimapWithNullKey (0.14 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java

            .testEquals();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testEqualsMultimapWithNullKey() {
        Multimap<K, V> original = multimap();
        initMultimapWithNullKey();
        Multimap<K, V> withNull = multimap();
        new EqualsTester()
            .addEqualityGroup(original)
            .addEqualityGroup(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java

        assertEmpty(multimap());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testRemoveAllNullKeyPresent() {
        initMultimapWithNullKey();
    
        assertContentsAnyOrder(multimap().removeAll(null), getValueForNullKey());
    
        expectMissing(mapEntry((K) null, getValueForNullKey()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

        Iterator<Entry<K, V>> entries = getSampleElements().iterator();
        for (int i = 0; i < getNullLocation(); i++) {
          entries.next();
        }
        return entries.next();
      }
    
      protected void initMultimapWithNullKey() {
        resetContainer(getSubjectGenerator().create((Object[]) createArrayWithNullKey()));
      }
    
      protected void initMultimapWithNullValue() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

        assertEquals(oldSize + 1, multimap().size());
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testGetNullPresent() {
        initMultimapWithNullKey();
        assertContains(multimap().get(null), getValueForNullKey());
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testGetNullAbsent() {
        assertEmpty(multimap().get(null));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

          }
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testAsMapGetNullKeyPresent() {
        initMultimapWithNullKey();
        assertContentsAnyOrder(multimap().asMap().get(null), getValueForNullKey());
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testAsMapGetNullKeyAbsent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testContainsEntryWithNullKeyPresent() {
        initMultimapWithNullKey();
        assertContains(multimap().entries(), mapEntry((K) null, getValueForNullKey()));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testContainsEntryWithNullKeyAbsent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

          }
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testAsMapGetNullKeyPresent() {
        initMultimapWithNullKey();
        assertContentsAnyOrder(multimap().asMap().get(null), getValueForNullKey());
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testAsMapGetNullKeyAbsent() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

        assertGet(k0(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testRemoveNullKeyPresent() {
        initMultimapWithNullKey();
    
        assertTrue(multimap().remove(null, getValueForNullKey()));
    
        expectMissing(mapEntry((K) null, getValueForNullKey()));
        assertGet(getKeyForNullValue(), ImmutableList.<V>of());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

        assertGet(k0(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testRemoveNullKeyPresent() {
        initMultimapWithNullKey();
    
        assertTrue(multimap().remove(null, getValueForNullKey()));
    
        expectMissing(mapEntry((K) null, getValueForNullKey()));
        assertGet(getKeyForNullValue(), ImmutableList.<V>of());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top