Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for throwingUnderlyingSourceClosesQuietly (0.47 sec)

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

                  closed = true
                  super.close()
                }
              }.buffer()
            }
          }
        body.source().close()
        assertThat(closed).isTrue()
      }
    
      @Test
      fun throwingUnderlyingSourceClosesQuietly() {
        val body: ResponseBody =
          object : ResponseBody() {
            override fun contentType(): MediaType? = null
    
            override fun contentLength(): Long = 5
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top