Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toRegex (0.03 sec)

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

        }
    
        val logs = ShadowLog.getLogsForTag(AndroidPlatform.Tag)
        assertThat(logs.map { it.type }).containsOnly(Log.INFO)
        assertThat(
          logs.map {
            it.msg.replace(
              "\\d+".toRegex(),
              "",
            )
          },
        ).containsExactly(
          "--> GET http://google.com/robots.txt",
          "<-- HTTP FAILED: java.net.UnknownHostException: shortcircuit. ${request.url} (ms)",
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. okhttp/build.gradle.kts

          allJvmArgs = allJvmArgs.filter { !it.startsWith("--add-opens") }
        }
        if (name.matches("test.*UnitTest".toRegex()) && javaLauncher.get().metadata.languageVersion.asInt() < 17) {
          // Work around robolectric requirements and limitations
          // https://github.com/robolectric/robolectric/issues/10419
          filter {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 03:59:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          .assertCode(200)
          .assertBody("success!")
    
        assertThat(proxySelector.failures)
          .all {
            hasSize(1)
            index(0).matches(".* Connect timed out".toRegex(RegexOption.IGNORE_CASE))
          }
      }
    
      /** https://github.com/square/okhttp/issues/4875  */
      @Test
      fun interceptorRecoversWhenRoutesExhausted() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top