Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for isNull (0.21 sec)

  1. guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.tryParse("")).isNull();
        assertThat(Ints.tryParse("-")).isNull();
        assertThat(Ints.tryParse("+1")).isNull();
        assertThat(Ints.tryParse("9999999999999999")).isNull();
        assertWithMessage("Max integer + 1")
            .that(Ints.tryParse(Long.toString(((long) GREATEST) + 1)))
            .isNull();
        assertWithMessage("Max integer * 10")
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1);
        entry.setValueReference(valueRef);
    
        assertThat(segment.get(key, hash)).isNull();
    
        // count == 0
        table.set(index, entry);
        assertThat(segment.get(key, hash)).isNull();
        assertThat(segment.containsKey(key, hash)).isFalse();
        assertThat(segment.containsValue(value)).isFalse();
    
        // count == 1
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 117.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1);
        entry.setValueReference(valueRef);
    
        assertThat(segment.get(key, hash)).isNull();
    
        // count == 0
        table.set(index, entry);
        assertThat(segment.get(key, hash)).isNull();
        assertThat(segment.containsKey(key, hash)).isFalse();
        assertThat(segment.containsValue(value)).isFalse();
    
        // count == 1
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 115.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertThat(segment.get(key, hash)).isNull();
    
        // cleared
        segment.setTableEntryForTesting(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        oldValueRef.clear();
        assertThat(segment.remove(key, hash)).isNull();
        assertEquals(0, segment.count);
        assertThat(segment.get(key, hash)).isNull();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertThat(segment.get(key, hash)).isNull();
    
        // cleared
        segment.setTableEntryForTesting(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        oldValueRef.clear();
        assertThat(segment.remove(key, hash)).isNull();
        assertEquals(0, segment.count);
        assertThat(segment.get(key, hash)).isNull();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. 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);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertThat(ArbitraryInstances.get(WithGenericConstant.class)).isNull();
      }
    
      public void testGet_nullConstant() {
        assertThat(ArbitraryInstances.get(WithNullConstant.class)).isNull();
      }
    
      public void testGet_constantTypeDoesNotMatch() {
        assertThat(ArbitraryInstances.get(ParentClassHasConstant.class)).isNull();
      }
    
      public void testGet_nonPublicConstantNotUsed() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 22.6K bytes
    - Viewed (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);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

          val source = response.body.source()
          assertThat(response.header("h1")).isEqualTo("v1")
          assertThat(response.peekTrailers()).isNull()
          assertFailsWith<IOException> {
            source.readUtf8()
          }
          try {
            assertThat(response.peekTrailers()).isNull() // Okay. This is what HTTP/1 does.
          } catch (_: IOException) {
            // Also okay. This is what HTTP/2 does.
          }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertThat(ArbitraryInstances.get(WithGenericConstant.class)).isNull();
      }
    
      public void testGet_nullConstant() {
        assertThat(ArbitraryInstances.get(WithNullConstant.class)).isNull();
      }
    
      public void testGet_constantTypeDoesNotMatch() {
        assertThat(ArbitraryInstances.get(ParentClassHasConstant.class)).isNull();
      }
    
      public void testGet_nonPublicConstantNotUsed() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 22.2K bytes
    - Viewed (0)
Back to top