Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPathRead (0.15 sec)

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

        val closedRequestBody = assertOnFileDescriptor { it.toRequestBody() }
    
        assertThrows(IOException::class.java) {
          closedRequestBody.writeTo(Buffer())
        }
      }
    
      @Test
      fun testPathRead() {
        assertOnPath(content = "Hello") { path ->
          val requestBody = path.asRequestBody(FileSystem.SYSTEM)
    
          val buffer = Buffer()
          requestBody.writeTo(buffer)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (1)
Back to top