Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for expectFailureOnJdkVersion (0.49 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

    class JavaHttpClientTest {
      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
      @StartStop
      private val server = MockWebServer()
    
      @Test fun get() {
        // Not available
        platform.expectFailureOnJdkVersion(8)
    
        val httpClient =
          HttpClient
            .newBuilder()
            .followRedirects(NORMAL)
            .build()
    
        server.enqueue(
          MockResponse
            .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

        }
    
        fun expectFailureFromJdkVersion(majorVersion: Int) {
          if (!TestUtil.isGraalVmImage) {
            expectFailure(fromMajor(majorVersion))
          }
        }
    
        fun expectFailureOnJdkVersion(majorVersion: Int) {
          if (!TestUtil.isGraalVmImage) {
            expectFailure(onMajor(majorVersion))
          }
        }
    
        fun expectFailureOnLoomPlatform() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 15.4K bytes
    - Viewed (1)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

      fun missingPongsFailsConnection(protocol: Protocol) {
        setUp(protocol)
        if (protocol === Protocol.HTTP_2) {
          // https://github.com/square/okhttp/issues/5221
          platform.expectFailureOnJdkVersion(12)
        }
    
        // Ping every 500 ms, starting at 500 ms.
        client =
          client
            .newBuilder()
            .readTimeout(Duration.ofSeconds(10)) // Confirm we fail before the read timeout.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
Back to top