- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for assertEquals (0.37 sec)
-
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt
*/ package okhttp3.internal.publicsuffix import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isNull import assertk.assertions.isTrue import kotlin.test.assertEquals import kotlin.test.assertFailsWith import okhttp3.internal.toCanonicalHost import okio.Buffer import okio.FileSystem import okio.GzipSource import okio.Path.Companion.toPath import okio.buffer import okio.use
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallKotlinTest.kt
server.enqueue(MockResponse(body = "abc")) val request = Request.Builder().url(server.url("/")).build() val response = client.newCall(request).execute() response.use { assertEquals(200, response.code) assertEquals( "CN=localhost", (response.handshake!!.peerCertificates.single() as X509Certificate).subjectDN.name, ) } } private fun enableTls() { client =
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/CertificatePinnerTest.kt
CertificatePinner.Pin( "**.example.co.uk", "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", ) assertEquals( "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=".decodeBase64(), pin.hash, ) assertEquals("sha256", pin.hashAlgorithm) assertEquals("**.example.co.uk", pin.pattern) Assertions.assertTrue(pin.matchesHostname("www.example.co.uk"))
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/StringprepTablesReaderTest.kt
* limitations under the License. */ package okhttp3.internal.idn import assertk.assertThat import assertk.assertions.hasSize import kotlin.test.Test import kotlin.test.assertEquals import okio.Buffer import okio.FileSystem import okio.Path.Companion.toPath class StringprepTablesReaderTest { @Test fun readRfc3491FromResources() { val reader = StringprepTablesReader(FileSystem.RESOURCES)
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MediaTypeGetTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import kotlin.test.assertEquals import kotlin.test.assertFailsWith import okhttp3.MediaType.Companion.toMediaType open class MediaTypeGetTest : MediaTypeTest() { override fun parse(string: String): MediaType = string.toMediaType()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.1K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
assertTrue(results.session_ticket_supported) assertEquals("Probably Okay", results.rating) // TODO map to expected versions automatically, test ignored for now. Run manually. assertEquals("TLS 1.3", results.tls_version) assertEquals(0, results.insecure_cipher_suites.size) assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion) assertEquals(Protocol.HTTP_2, response.protocol) } @Test
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 27K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/MediaTypeJvmTest.kt
if (isAndroid) { // Charset.forName("'utf-8'") == UTF-8 assertEquals("UTF-8", mediaType.charsetName()) } else { assertNull(mediaType.charset()) } } @Test fun testDefaultCharset() { val noCharset = parse("text/plain") assertEquals( "UTF-8", noCharset.charset(Charsets.UTF_8)!!.name(), ) assertEquals( "US-ASCII", noCharset.charset(Charsets.US_ASCII)!!.name(),
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
import okhttp3.Request import okhttp3.Response import okhttp3.TestValueFactory import okhttp3.internal.RecordingAuthenticator import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test // Most tests from URLConnectionTest class JavaNetAuthenticatorTest { private var authenticator = JavaNetAuthenticator()
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.7K bytes - Viewed (0) -
build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt
val result = run(":successful-test-with-leftover:test", "--no-watch-fs").buildAndFail() assertEquals(TaskOutcome.SUCCESS, result.task(":successful-test-with-leftover:test")!!.outcome) assertEquals(1, StringUtils.countMatches(result.output, "Found non-empty test files dir")) assertEquals(1, StringUtils.countMatches(result.output, "Failed to stop service 'testFilesCleanupBuildService'"))
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Jun 14 12:35:52 GMT 2023 - 10.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
val hostNfcPunycode = "xn--caf-dma.com" val hostNfd = "cafeĢ.com" val hostNfdPunycode = "xn--cafe-yvc.com" assertEquals(hostNfcPunycode, "http://$hostNfc/".toHttpUrl().host) assertEquals(hostNfcPunycode, "http://$hostNfcPunycode/".toHttpUrl().host) assertEquals(hostNfcPunycode, "http://$hostNfd/".toHttpUrl().host) if (isJvm) return // TODO: the rest of this test is broken on JVM platforms.
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0)