- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for assertNotSuccessful (0.06 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
assertThat(response!!.code).isEqualTo(expectedCode) } fun assertSuccessful() = apply { assertThat(failure).isNull() assertThat(response!!.isSuccessful).isTrue() } fun assertNotSuccessful() = apply { assertThat(response!!.isSuccessful).isFalse() } fun assertHeader( name: String, vararg values: String?, ) = apply {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
} } @Test fun getReturns500() { server.enqueue(MockResponse(code = 500)) executeSynchronously("/") .assertCode(500) .assertNotSuccessful() } @Test fun get_HTTP_2() { enableProtocol(Protocol.HTTP_2) get() } @Test fun get_HTTPS() { enableTls() get() } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0)