Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 234 for isNull (0.06 seconds)

  1. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.containsKey(one)).isFalse();
        assertThat(map.containsValue(one)).isFalse();
        assertThat(map.putIfAbsent(two, three)).isNull();
        assertThat(map.remove(two)).isSameInstanceAs(three);
        assertThat(map.put(three, one)).isNull();
        assertThat(map.put(one, two)).isNull();
    
        assertThat(map).containsEntry(three, one);
        assertThat(map).containsEntry(one, two);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        segment.setValueForTesting(entry, value);
    
        assertThat(segment.get(key, hash)).isNull();
    
        // count == 0
        segment.setTableEntryForTesting(index, entry);
        assertThat(segment.get(key, hash)).isNull();
        assertFalse(segment.containsKey(key, hash));
        assertFalse(segment.containsValue(value));
    
        // count == 1
        segment.count++;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 36K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        segment.setValueForTesting(entry, value);
    
        assertThat(segment.get(key, hash)).isNull();
    
        // count == 0
        segment.setTableEntryForTesting(index, entry);
        assertThat(segment.get(key, hash)).isNull();
        assertFalse(segment.containsKey(key, hash));
        assertFalse(segment.containsValue(value));
    
        // count == 1
        segment.count++;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 36K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

            .build()
        assertThat(request.tag()).isNull()
        assertThat(request.tag(Any::class.java)).isNull()
        assertThat(request.tag(UUID::class.java)).isNull()
        assertThat(request.tag(String::class.java)).isNull()
    
        // Alternate access APIs also work.
        assertThat(request.tag<String>()).isNull()
        assertThat(request.tag(String::class)).isNull()
      }
    
      @Test
      fun defaultTag() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 24.6K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

            boundary = "simple boundary",
            source = Buffer().writeUtf8(multipart),
          )
    
        assertThat(parts.nextPart()).isNotNull()
        assertThat(parts.nextPart()).isNull()
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `empty source`() {
        val parts =
          MultipartReader(
            boundary = "simple boundary",
            source = Buffer(),
          )
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed May 28 02:11:14 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  6. okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.ResponseBody.Companion.asResponseBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Aug 01 06:04:22 GMT 2025
    - 3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        fakeTicker.advance(2, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
        assertThat(cache.getIfPresent(20)).isNull();
        assertThat(cache.getIfPresent(4)).isNull();
    
        cache.put(10, 20);
        assertThat(cache.getIfPresent(10)).isEqualTo(20);
    
        fakeTicker.advance(1000, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
      }
    
      @Test
      public void expireAfterWriteAndAccess() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/base/EnumsTest.java

        assertEquals(TestEnum.HONDA, converter.convert("HONDA"));
        assertEquals(TestEnum.POODLE, converter.convert("POODLE"));
        assertThat(converter.convert(null)).isNull();
        assertThat(converter.reverse().convert(null)).isNull();
      }
    
      public void testStringConverter_convertError() {
        Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        Collections.addAll(strings, "one", "two", "three");
        SortedMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.comparator()).isNull();
        assertEquals(ImmutableSortedMap.of("one", 3, "two", 3, "three", 5), map);
        assertThat(map.get("four")).isNull();
        strings.add("four");
        assertEquals(ImmutableSortedMap.of("one", 3, "two", 3, "three", 5, "four", 4), map);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        fakeTicker.advance(2, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
        assertThat(cache.getIfPresent(20)).isNull();
        assertThat(cache.getIfPresent(4)).isNull();
    
        cache.put(10, 20);
        assertThat(cache.getIfPresent(10)).isEqualTo(20);
    
        fakeTicker.advance(1000, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
      }
    
      @Test
      public void expireAfterWriteAndAccess() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
Back to Top