- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for confirm (0.21 sec)
-
okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt
assertThat(compactTable.mappings.length).isLessThan(1 shl 14) // Confirm the data strings are ASCII. for (dataString in listOf<String>(compactTable.sections, compactTable.ranges)) { for (codePoint in dataString.codePoints()) { assertThat(codePoint and 0x7f).isEqualTo(codePoint) } } // Confirm the sections are increasing. val rangesIndices = mutableListOf<Int>()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
else -> { connectionUser.acquireConnectionNoEvents(connection) true } } } if (!acquired) continue // Confirm the connection is healthy and return it. if (connection.isHealthy(doExtensiveHealthChecks)) return connection // In the second synchronized block, release the unhealthy acquired connection. We're also on
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 16.2K bytes - Viewed (0) -
docs/releasing.md
``` sed -i "" \ "s/version = \".*\"/version = \"$NEXT_VERSION\"/g" \ build.gradle.kts git commit -am "Prepare next development version." git push ``` 7. Confirm the [GitHub Actions][github_actions] publish job succeeded. [github_actions]: https://github.com/square/okhttp/actions
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Dec 26 22:07:16 GMT 2022 - 1.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallKotlinTest.kt
) val responseB = client.newCall(requestB).execute() assertThat(responseB.body.string()).isEqualTo("b") assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) } /** Confirm suppressed exceptions that occur while connecting are returned. */ @Test fun connectExceptionsAreReturnedAsSuppressed() { val proxySelector = RecordingProxySelector()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 8.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
filesystem.setFaultyDelete(cacheDir / "a.1", true) taskFaker.runNextTask() // Confirm the partial snapshot is not returned. assertThat(cache["a"]).isNull() // Confirm we prevent edits after a trim failure. assertThat(cache.edit("a")).isNull() // Confirm the partial snapshot is not returned after a successful trim. filesystem.setFaultyDelete(cacheDir / "a.1", false)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
ifNoneMatch.compareAndSet(null, chain.request().header("If-None-Match")) chain.proceed(chain.request()) }, ) .build() // Confirm the value is cached and intercepted. assertThat(get(url).body.string()).isEqualTo("A") assertThat(ifNoneMatch.get()).isEqualTo("v1") } @Test fun networkInterceptorNotInvokedForFullyCached() {
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestCommonTest.kt
assertThat(request.tag(String::class)).isSameAs(stringTag) // TODO check for Jvm or handle Long/long correctly // assertThat(request.tag(Long::class)).isSameAs(longTag) } /** Confirm that we don't accidentally share the backing map between objects. */ @Test fun tagsAreImmutable() { val builder = Request.Builder() .url("https://square.com")
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
import okhttp3.internal.http.RecordingProxySelector import okhttp3.tls.HandshakeCertificates import okhttp3.tls.internal.TlsUtil.localhost /** * OkHttp is usually tested with functional tests: these use public APIs to confirm behavior against * MockWebServer. In cases where logic is particularly tricky, we use unit tests. This class makes * it easy to get sample values to use in such tests. *
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt
routeSelector = newRouteSelector(address) // Confirm we enumerate both proxies, giving preference to the route from ProxyB. val selection2 = routeSelector.next() dns.assertRequests(PROXY_A_HOST, PROXY_B_HOST) assertRoute(selection2.next(), address, proxyB, dns.lookup(PROXY_B_HOST, 0), PROXY_B_PORT) assertThat(selection2.hasNext()).isFalse() // Confirm the last selection contains the postponed route from ProxyA.
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Wed Mar 06 17:33:38 GMT 2024 - 20.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
assertThat(response1.body.string()).isEqualTo("abc") response1.close() // Force a fresh connection for the next request. client.connectionPool.evictAll() // Confirm that a second request also succeeds. This should detect caching problems. server.enqueue( MockResponse.Builder() .body("def") .socketPolicy(DisconnectAtEnd) .build(), )
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 23.8K bytes - Viewed (0)