- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 178 for IsNull (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
fun assertNoNetworkResponse() = apply { assertThat(response!!.networkResponse).isNull() } /** Asserts that the current response didn't use the cache. */ fun assertNoCacheResponse() = apply { assertThat(response!!.cacheResponse).isNull() } /** * Asserts that the current response used the cache and returns the cache response. */
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
*/ @NullMarked @GwtCompatible public final class OptionalTest extends TestCase { @SuppressWarnings("NullOptional") public void testToJavaUtil_static() { assertThat(Optional.toJavaUtil(null)).isNull(); assertEquals(java.util.Optional.empty(), Optional.toJavaUtil(Optional.absent())); assertEquals(java.util.Optional.of("abc"), Optional.toJavaUtil(Optional.of("abc"))); } public void testToJavaUtil_instance() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
assertEquals("correct", f.apply(new Object())); assertEquals("correct", f.apply(null)); Function<@Nullable Object, @Nullable String> g = Functions.constant(null); assertThat(g.apply(2)).isNull(); assertThat(g.apply(null)).isNull(); new EqualsTester() .addEqualityGroup(f, Functions.constant("correct")) .addEqualityGroup(Functions.constant("incorrect"))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatformTest.kt
* limitations under the License. */ package okhttp3.internal.platform import assertk.assertThat import assertk.assertions.isNotNull import assertk.assertions.isNull import okhttp3.internal.platform.Jdk8WithJettyBootPlatform.Companion.buildIfSupported import okhttp3.testing.PlatformRule import org.junit.jupiter.api.Assumptions.assumeFalse import org.junit.jupiter.api.Assumptions.assumeTrue
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java
} public void testGet() { assertThat(testTable.get('a', 1)).isEqualTo("blah"); assertThat(testTable.get('a', 2)).isNull(); assertThat(testTable.get('A', 1)).isNull(); assertThat(testTable.get('A', 2)).isNull(); } public void testIsEmpty() { assertFalse(testTable.isEmpty()); } public void testSize() { assertEquals(1, testTable.size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/ConverterTest.java
Converter<String, Number> converter = Converter.<String, Number>from(forward, backward); assertThat(converter.convert(null)).isNull(); assertThat(converter.reverse().convert(null)).isNull(); assertEquals((Integer) 5, converter.convert("5")); assertThat(converter.reverse().convert(5)).isEqualTo("5"); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 8.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/Jdk9PlatformTest.kt
* limitations under the License. */ package okhttp3.internal.platform import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isNotNull import assertk.assertions.isNull import javax.net.ssl.SSLSocket import okhttp3.DelegatingSSLSocket import okhttp3.internal.platform.Jdk9Platform.Companion.buildIfSupported import okhttp3.testing.PlatformRule import org.junit.jupiter.api.Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
// don't let the new entry get GCed warmed.add(entryOf(entry.getKey(), newValue)); Object newKey = new Object(); assertThat(cache.asMap().put(newKey, entry.getValue())).isNull(); // this getUnchecked() call shouldn't be a cache miss; verified below assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(newValue); assertThat(cache.getUnchecked(newKey)).isEqualTo(entry.getValue());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/DefaultsTest.java
assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue()); assertThat(Defaults.defaultValue(double.class).doubleValue()).isEqualTo(0.0d); assertThat(Defaults.defaultValue(void.class)).isNull(); assertThat(Defaults.defaultValue(String.class)).isNull(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 26 02:41:17 GMT 2026 - 1.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/DefaultsTest.java
assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue()); assertThat(Defaults.defaultValue(double.class).doubleValue()).isEqualTo(0.0d); assertThat(Defaults.defaultValue(void.class)).isNull(); assertThat(Defaults.defaultValue(String.class)).isNull(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 26 02:41:17 GMT 2026 - 1.7K bytes - Click Count (0)