Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for resetForTests (0.05 sec)

  1. android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt

    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class DisabledInitialiserTest {
      @Before
      fun setContext() {
        // Ensure we aren't succeeding because of another test
        Platform.resetForTests()
        PlatformRegistry.applicationContext = null
      }
    
      @Test
      fun testWithoutContext() {
        val httpUrl = "https://www.google.co.uk".toHttpUrl()
        assertFailure { httpUrl.topPrivateDomain() }.all {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 16:25:39 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top