- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for assertInvalid (0.08 sec)
-
okhttp/src/test/java/okhttp3/internal/http/StatusLineTest.kt
@Test fun missingProtocol() { assertInvalid("") assertInvalid(" ") assertInvalid("200 OK") assertInvalid(" 200 OK") } @Test fun protocolVersions() { assertInvalid("HTTP/2.0 200 OK") assertInvalid("HTTP/2.1 200 OK") assertInvalid("HTTP/-.1 200 OK") assertInvalid("HTTP/1.- 200 OK") assertInvalid("HTTP/0.1 200 OK") assertInvalid("HTTP/101 200 OK")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
} @Test fun unparseableTopPrivateDomain() { assertInvalid("http://a../", "Invalid URL host: \"a..\"") assertInvalid("http://..a/", "Invalid URL host: \"..a\"") assertInvalid("http://a..b/", "Invalid URL host: \"a..b\"") assertInvalid("http://.a/", "Invalid URL host: \".a\"") assertInvalid("http://../", "Invalid URL host: \"..\"") } @Test fun hostnameTelephone() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 67.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MediaTypeTest.kt
} @Test fun testInvalidParse() { assertInvalid("", "No subtype found for: \"\"") assertInvalid("/", "No subtype found for: \"/\"") assertInvalid("text", "No subtype found for: \"text\"") assertInvalid("text/", "No subtype found for: \"text/\"") assertInvalid("te<t/plain", "No subtype found for: \"te<t/plain\"") assertInvalid(" text/plain", "No subtype found for: \" text/plain\"")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MediaTypeGetTest.kt
import kotlin.test.assertFailsWith import okhttp3.MediaType.Companion.toMediaType open class MediaTypeGetTest : MediaTypeTest() { override fun parse(string: String): MediaType = string.toMediaType() override fun assertInvalid( string: String, exceptionMessage: String?, ) { val e = assertFailsWith<IllegalArgumentException> { parse(string) } assertEquals(exceptionMessage, e.message) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.1K bytes - Viewed (0)