Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertBody (0.11 sec)

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

              assertSuccessful()
              assertCode(200)
    
              assertThat(server2.requestCount).isEqualTo(1)
            } else {
              this.assertFailure(SocketTimeoutException::class.java)
            }
          }
    
        println("\n\nRequest to ${server2.inetSocketAddress}")
        executeSynchronously(request)
          .assertSuccessful()
          .assertCode(200)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/InterceptorTest.kt

                      .build()
                  try {
                    val callbackA = RecordingCallback()
                    client.newCall(requestA).enqueue(callbackA)
                    callbackA.await(requestA.url).assertBody("a")
                  } catch (e: Exception) {
                    throw RuntimeException(e)
                  }
                }
                chain.proceed(chain.request())
              },
            )
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top