- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for negativeStatusCodeThrowsIllegalStateException (0.64 sec)
-
okhttp/src/test/java/okhttp3/ResponseCommonTest.kt
val p2 = response.peekBody(2) assertThat(response.body.string()).isEqualTo("abcdef") assertThat(p1.string()).isEqualTo("abcd") assertThat(p2.string()).isEqualTo("ab") } @Test fun negativeStatusCodeThrowsIllegalStateException() { assertFailsWith<IllegalStateException> { newResponse(responseBody("set status code -1"), -1) } } @Test fun zeroStatusCodeIsValid() {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.6K bytes - Viewed (0)