- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for assertNoNetworkResponse (0.06 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
return RecordedResponse(networkResponse.request, networkResponse, null, null, null) } /** Asserts that the current response didn't use the network. */ fun assertNoNetworkResponse() = apply { assertThat(response!!.networkResponse).isNull() } /** Asserts that the current response didn't use the cache. */ fun assertNoCacheResponse() = apply {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
.assertRequestHeader("Accept-Charset", "UTF-8") .assertSentRequestAtMillis(request1SentAt, request1ReceivedAt) .assertReceivedResponseAtMillis(request1SentAt, request1ReceivedAt) cacheHit.assertNoNetworkResponse() } @Test fun conditionalCacheHit() { server.enqueue( MockResponse( headers = headersOf( "ETag", "v1",
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0)