Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for assumeLoom (0.08 sec)

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

      val clientTestRule = OkHttpClientTestRule()
    
      private lateinit var server: MockWebServer
    
      private lateinit var client: OkHttpClient
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        platform.assumeLoom()
    
        this.server = server
    
        client =
          clientTestRule.newClientBuilder()
            .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor()))
            .build()
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

      val capturedOut = ByteArrayOutputStream()
    
      private lateinit var executor: ExecutorService
    
      private lateinit var client: OkHttpClient
    
      @BeforeEach
      fun setUp() {
        platform.assumeLoom()
        assertThat(System.getProperty("jdk.tracePinnedThreads")).isNotEmpty()
    
        client =
          OkHttpClient.Builder()
            .trustMockServer()
            .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor()))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 11:15:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          assumeTrue(getPlatformSystemProperty() == BOUNCYCASTLE_PROPERTY)
        }
    
        fun assumeOpenJsse() {
          assumeTrue(getPlatformSystemProperty() == OPENJSSE_PROPERTY)
        }
    
        fun assumeLoom() {
          assumeTrue(getPlatformSystemProperty() == LOOM_PROPERTY)
        }
    
        fun assumeHttp2Support() {
          assumeTrue(getPlatformSystemProperty() != JDK8_PROPERTY)
        }
    
        fun assumeAndroid() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (1)
Back to top