Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for assertFailsWith (0.16 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

          assertThat(source.readUtf8(halfResponseBody.length.toLong())).isEqualTo(halfResponseBody)
          source.close()
          assertFailsWith<IllegalStateException> {
            source.readUtf8()
          }
          assertFailsWith<IOException> {
            response.peekTrailers()
          }
          assertFailsWith<IOException> {
            response.trailers()
          }
        }
      }
    
      private fun MockResponse.Builder.body(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top