- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for BaseOkHttpClientUnitTest (1.98 sec)
-
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
import okhttp3.Request import okio.Path.Companion.toPath import okio.fakefilesystem.FakeFileSystem import org.junit.AssumptionViolatedException import org.junit.Before import org.junit.Test abstract class BaseOkHttpClientUnitTest { private lateinit var client: OkHttpClient @Before fun setUp() { client = OkHttpClient .Builder() .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 22 20:03:31 UTC 2025 - 2.3K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/NonRobolectricOkHttpClientTest.kt
import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 /** * Android test running with only stubs. */ @RunWith(JUnit4::class) class NonRobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() { @Test override fun testPublicSuffixDb() { assertFailure { super.testPublicSuffixDb() }.all { hasMessage("Unable to load PublicSuffixDatabase.list resource.") cause().isNotNull().all {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 1.6K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt
import org.robolectric.RobolectricTestRunner import org.robolectric.annotation.Config @RunWith(RobolectricTestRunner::class) @Config( sdk = [23, 26, 30, 33, 35], ) class RobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() { @Before fun setContext() { // This is awkward because Robolectric won't run our initializers and we don't want test deps // https://github.com/robolectric/robolectric/issues/8461
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 16:25:39 UTC 2025 - 1.2K bytes - Viewed (0)