Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getLogsForTag (0.2 sec)

  1. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

        val client = clientBuilder.addInterceptor(interceptor).build()
    
        try {
          client.newCall(request).execute()
        } catch (uhe: UnknownHostException) {
          // expected
        }
    
        val logs = ShadowLog.getLogsForTag("testHttpLoggingInterceptor")
        assertThat(logs.map { it.type }).containsOnly(Log.INFO)
        assertThat(logs.map { it.msg }).containsExactly(
          "--> GET http://google.com/robots.txt",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top