- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 61 for best (0.12 sec)
-
okhttp/src/test/java/okhttp3/OkHttpTest.kt
* limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.matches import org.junit.jupiter.api.Test class OkHttpTest { @Test fun testVersion() { assertThat(OkHttp.VERSION).matches(Regex("[0-9]+\\.[0-9]+\\.[0-9]+(-.+)?")) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Dec 21 01:54:49 GMT 2023 - 848 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/DispatcherCleanupTest.kt
* limitations under the License. */ package okhttp3 import java.io.IOException import mockwebserver3.MockWebServer import org.junit.jupiter.api.Test class DispatcherCleanupTest { @Test fun testFinish(server: MockWebServer) { val okhttp = OkHttpClient() val callback = object : Callback { override fun onFailure( call: Call,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HuffmanTest.kt
import okio.ByteString.Companion.encodeUtf8 import okio.ByteString.Companion.toByteString import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test /** Original version of this class was lifted from `com.twitter.hpack.HuffmanTest`. */ class HuffmanTest { @Test fun roundTripForRequestAndResponse() { val s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" for (i in s.indices) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Jan 04 05:32:07 GMT 2024 - 1.8K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/RunSurvey.kt
chrome33, chrome57, safari12Osx, ) val orderBy = okhttp.enabled + chrome80.enabled + safari12Osx.enabled + rest(clients) val survey = CipherSuiteSurvey(clients = clients, ianaSuites = ianaSuitesNew, orderBy = orderBy) survey.printGoogleSheet() } fun rest(clients: List<Client>): List<SuiteId> { // combine all ciphers to get these near the top return clients.flatMap { it.enabled }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 3.5K bytes - Viewed (0) -
mockwebserver-junit5/build.gradle.kts
id("com.vanniktech.maven.publish.base") id("binary-compatibility-validator") } tasks { jar { manifest { attributes("Automatic-Module-Name" to "mockwebserver3.junit5") } } test { useJUnitPlatform() systemProperty("junit.jupiter.extensions.autodetection.enabled", "true") } } dependencies { api(projects.mockwebserver3) api(libs.junit.jupiter.api)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Jan 04 05:32:07 GMT 2024 - 833 bytes - Viewed (0) -
okhttp/src/test/resources/okhttp3/internal/idn/README.md
`StringprepTablesReader` into a model that can be used at runtime. This format is chosen to make it easy to validate that these tables are consistent with the RFC. ``` cd okhttp/src/test/resources/okhttp3/internal/idn/ ls rfc3454.*.txt | xargs -n 1 -I {} bash -c "echo {} ; cat {}" > okhttp_tables.txt curl https://www.rfc-editor.org/rfc/rfc3454.txt > rfc3454.txt diff rfc3454.txt okhttp_tables.txt | less
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 618 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/TestLogHandler.kt
import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement /** * A log handler that records which log messages were published so that a calling test can make * assertions about them. */ class TestLogHandler( private val logger: Logger, ) : TestRule, BeforeEachCallback, AfterEachCallback {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/internal.kt
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** Exposes Kotlin-internal APIs to Java test code and code in other modules. */ @file:JvmName("Internal") @file:Suppress("ktlint:standard:filename") package okhttp3.internal import java.nio.charset.Charset import javax.net.ssl.SSLSocket import okhttp3.Cache
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocketChannelTest.kt
.build() } private var acceptedHostName: String? = null private lateinit var server: MockWebServer @BeforeEach fun setUp(server: MockWebServer) { this.server = server // Test designed for Conscrypt and JSSE platform.assumeNotBouncyCastle() } @ParameterizedTest @MethodSource("connectionTypes") fun testConnection(socketMode: SocketMode) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt
import java.net.ServerSocket import java.net.Socket import java.util.concurrent.CountDownLatch import java.util.concurrent.TimeUnit.MILLISECONDS import javax.net.ServerSocketFactory import javax.net.SocketFactory import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import okhttp3.Call import okhttp3.CallEvent import okhttp3.CallEvent.CallEnd import okhttp3.CallEvent.CallStart
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 9.9K bytes - Viewed (0)