Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/test/java/okhttp3/RequestBodyTest.kt

      }
    
      @Test
      fun testFileDescriptor() {
        assertOnFileDescriptor { fd ->
          val requestBody = fd.toRequestBody()
    
          assertThat(requestBody.contentLength()).isEqualTo(-1L)
          assertThat(requestBody.isOneShot()).isEqualTo(true)
        }
      }
    
      @Test
      fun testFileDescriptorRead() {
        assertOnFileDescriptor(content = "Hello") { fd ->
          val requestBody = fd.toRequestBody()
    
    Registered: 2024-06-16 04:42
    - Last Modified: 2024-01-08 01:13
    - 3.6K bytes
    - Viewed (0)
Back to top