- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for assertFailsWith (0.08 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
} @Test fun requestHeaderValidationIsStrict() { assertFailsWith<IllegalArgumentException> { Request.Builder() .addHeader("a\tb", "Value") } assertFailsWith<IllegalArgumentException> { Request.Builder() .addHeader("Name", "c\u007fd") } assertFailsWith<IllegalArgumentException> { Request.Builder() .addHeader("", "Value")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
val requestBuilder = Request.Builder() assertFailsWith<IllegalArgumentException> { requestBuilder.url("ftp://hostname/path") }.also { expected -> assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'") } } @Test fun invalidPort() { val requestBuilder = Request.Builder() assertFailsWith<IllegalArgumentException> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
import java.util.Date import java.util.Locale import java.util.TimeZone import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicReference import javax.net.ssl.HostnameVerifier import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.RecordedRequest import mockwebserver3.SocketPolicy.DisconnectAtEnd import mockwebserver3.junit5.internal.MockWebServerInstance
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0)