- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for getApplicationContext (0.23 seconds)
-
android-test/src/androidDeviceTest/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 {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0)