Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getApplicationContext (0.08 sec)

  1. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

      @StartStop
      private val server = MockWebServer()
    
      @BeforeEach
      fun setup() {
        // Needed because of Platform.resetForTests
        PlatformRegistry.applicationContext = ApplicationProvider.getApplicationContext<Context>()
      }
    
      @Test
      fun testPlatform() {
        assertTrue(Platform.isAndroid)
    
        if (Build.VERSION.SDK_INT >= 29) {
          assertTrue(Platform.get() is Android10Platform)
        } else {
    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