Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testKeysWithNullKey (0.2 sec)

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

      public void testKeysCountAbsentNullKey() {
        assertEquals(0, multimap().keys().count(null));
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testKeysWithNullKey() {
        resetContainer(mapEntry((K) null, v0()), mapEntry((K) null, v1()), mapEntry(k1(), v0()));
        Multiset<K> keys = multimap().keys();
        assertEquals(2, keys.count(null));
        assertEquals(1, keys.count(k1()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

      public void testKeysCountAbsentNullKey() {
        assertEquals(0, multimap().keys().count(null));
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testKeysWithNullKey() {
        resetContainer(mapEntry((K) null, v0()), mapEntry((K) null, v1()), mapEntry(k1(), v0()));
        Multiset<K> keys = multimap().keys();
        assertEquals(2, keys.count(null));
        assertEquals(1, keys.count(k1()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top