Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PlatformVersion (0.06 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          }
    
        fun fromMajor(version: Int): Matcher<PlatformVersion> =
          object : TypeSafeMatcher<PlatformVersion>() {
            override fun describeTo(description: Description) {
              description.appendText("JDK with version from $version")
            }
    
            override fun matchesSafely(item: PlatformVersion): Boolean = item.majorVersion >= version
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 15.4K bytes
    - Viewed (1)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionSpecTest.kt

    import kotlin.test.assertFailsWith
    import okhttp3.internal.applyConnectionSpec
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    import okhttp3.testing.PlatformRule
    import okhttp3.testing.PlatformVersion.majorVersion
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class ConnectionSpecTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.9K bytes
    - Viewed (0)
Back to top