Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testPutNullKey (0.16 sec)

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

        assertThrows(NullPointerException.class, () -> multimap().put(k1(), null));
    
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPutNullKey() {
        int size = getNumElements();
    
        multimap().put(null, v3());
    
        assertGet(null, v3());
        assertEquals(size + 1, multimap().size());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        assertThrows(NullPointerException.class, () -> multimap().put(k1(), null));
    
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPutNullKey() {
        int size = getNumElements();
    
        multimap().put(null, v3());
    
        assertGet(null, v3());
        assertEquals(size + 1, multimap().size());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertEquals(initialSize, map.size());
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.put(keyToPut, valueToPut));
        }
        assertInvariants(map);
      }
    
      public void testPutNullKey() {
        if (!supportsPut) {
          return;
        }
        Map<K, V> map = makeEitherMap();
        V valueToPut;
        try {
          valueToPut = getValueNotInPopulatedMap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertEquals(initialSize, map.size());
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.put(keyToPut, valueToPut));
        }
        assertInvariants(map);
      }
    
      public void testPutNullKey() {
        if (!supportsPut) {
          return;
        }
        Map<K, V> map = makeEitherMap();
        V valueToPut;
        try {
          valueToPut = getValueNotInPopulatedMap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
Back to top