Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resetForTests (0.04 sec)

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

          if (platform != null) {
            Platform.resetForTests(platform)
          } else {
            Platform.resetForTests()
          }
    
          if (requiredPlatformName != null) {
            System.err.println("Running with ${Platform.get().javaClass.simpleName}")
          }
        }
    
        fun resetPlatform() {
          if (platform != null) {
            Platform.resetForTests()
          }
        }
    
    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. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

          .build()
    
      private val handshakeCertificates = localhost()
    
      @StartStop
      private val server = MockWebServer()
    
      @BeforeEach
      fun setup() {
        // Needed because of Platform.resetForTests
        PlatformRegistry.applicationContext = ApplicationProvider.getApplicationContext<Context>()
      }
    
      @Test
      fun testPlatform() {
        assertTrue(Platform.isAndroid)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
Back to top