- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for 65537 (0.12 sec)
-
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
assertThat(ioe.message).isEqualTo("google.com") val cause = ioe.cause!! assertThat(cause).isInstanceOf<IOException>() assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes") } } @Test fun failOnBadResponse() { server.enqueue(dnsResponse("00")) try { dns.lookup("google.com") fail<Any>() } catch (ioe: IOException) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 11K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
@Test fun invalidPort() { val requestBuilder = Request.Builder() assertFailsWith<IllegalArgumentException> { requestBuilder.url("http://localhost:65536/") }.also { expected -> assertThat(expected.message).isEqualTo("Invalid URL port: \"65536\"") } } @Test fun getReturns500() { server.enqueue(MockResponse(code = 500)) executeSynchronously("/") .assertCode(500)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0)