- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 64 for isNotNull (0.04 sec)
-
android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt
*/ package okhttp.android.test import assertk.all import assertk.assertFailure import assertk.assertions.cause import assertk.assertions.hasClass import assertk.assertions.hasMessage import assertk.assertions.isNotNull import java.io.IOException import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.internal.platform.Platform import okhttp3.internal.platform.PlatformRegistry import org.junit.AfterClass import org.junit.Before
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Aug 30 16:25:39 UTC 2025 - 2.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt
val call = client.newCall(Request(server.url("/"))) val response = call.execute() assertThat(response.code).isEqualTo(200) assertThat(response.handshake!!.cipherSuite).isNotNull() assertThat(response.handshake!!.tlsVersion).isNotNull() assertThat(response.handshake!!.localCertificates).isEmpty() assertThat(response.handshake!!.localPrincipal).isNull() assertThat(response.handshake!!.peerCertificates).isEmpty()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
val exception = callFailure.get(5, TimeUnit.SECONDS) assertThat(exception.message) .isNotNull() .startsWith("canceled due to") assertThat(exception).isInstanceOf<IOException>() assertThat(exception.cause) .isNotNull() .matchesPredicate { it is InterruptedException || it is RejectedExecutionException } assertThat(clientTestRule.takeUncaughtException())Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 18:33:48 UTC 2025 - 6.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
val client = clientTestRule.newClient() // Values should be non-null. val a = client.newBuilder().build() assertThat(a.dispatcher).isNotNull() assertThat(a.connectionPool).isNotNull() assertThat(a.sslSocketFactory).isNotNull() assertThat(a.x509TrustManager).isNotNull() // Multiple clients share the instances. val b = client.newBuilder().build() assertThat(b.dispatcher).isSameAs(a.dispatcher)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13.4K bytes - Viewed (1) -
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
* limitations under the License. */ package okhttp3.compare import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isNotNull import assertk.assertions.isNull import assertk.assertions.matches import java.net.http.HttpClient import java.net.http.HttpClient.Redirect.NORMAL import java.net.http.HttpRequest
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
assertThat(e).hasMessageThat().isEqualTo("resource no such resource not found."); } public void testGetResource() { assertThat(Resources.getResource("com/google/common/io/testdata/i18n.txt")).isNotNull(); } public void testGetResource_relativePath_notFound() { IllegalArgumentException e = assertThrows( IllegalArgumentException.class,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConscryptTest.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.isNotNull import assertk.assertions.isTrue import okhttp3.TestUtil.assumeNetwork import okhttp3.internal.platform.ConscryptPlatform import okhttp3.internal.platform.Platform import okhttp3.testing.PlatformRule
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.1K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/NonRobolectricOkHttpClientTest.kt
*/ package okhttp.android.test import assertk.all import assertk.assertFailure import assertk.assertions.cause import assertk.assertions.hasClass import assertk.assertions.hasMessage import assertk.assertions.isNotNull import java.io.IOException import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 /** * Android test running with only stubs. */ @RunWith(JUnit4::class)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 1.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
} }; Class<?> finalizerCopy = decoupledLoader.loadFinalizer(); assertThat(finalizerCopy).isNotNull(); assertThat(finalizerCopy).isNotEqualTo(Finalizer.class); assertThat(FinalizableReferenceQueue.getStartFinalizer(finalizerCopy)).isNotNull(); } static class DecoupledClassLoader extends URLClassLoader { public DecoupledClassLoader(URL[] urls) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 8.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
* limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isFalse import assertk.assertions.isNotNull import assertk.assertions.isTrue import java.io.IOException import java.io.InterruptedIOException import java.net.HttpURLConnection import java.time.Duration import java.util.concurrent.CountDownLatch
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 10.6K bytes - Viewed (0)