Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testMockWebserverRequest (0.13 sec)

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

        val response2 = cloned.execute()
    
        assertThat("abc").isEqualTo(response1.body.string())
        assertThat("def").isEqualTo(response2.body.string())
      }
    
      @Test
      @Flaky
      fun testMockWebserverRequest() {
        enableTls()
    
        server.enqueue(MockResponse(body = "abc"))
    
        val request = Request.Builder().url(server.url("/")).build()
    
        val response = client.newCall(request).execute()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        assertEquals(0, results.insecure_cipher_suites.size)
    
        assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion)
        assertEquals(Protocol.HTTP_2, response.protocol)
      }
    
      @Test
      fun testMockWebserverRequest() {
        enableTls()
    
        server.enqueue(MockResponse(body = "abc"))
    
        val request = Request.Builder().url(server.url("/")).build()
    
        val response = client.newCall(request).execute()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top