Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for robolectric (0.06 seconds)

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

    import org.junit.Before
    import org.junit.runner.RunWith
    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
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  2. okhttp-testing-support/build.gradle.kts

          }
        )
      })
    
      api(libs.hamcrestLibrary)
      api(libs.junit.jupiter.api)
      api(libs.junit.jupiter.params)
    
      api(libs.junit.pioneer)
    
      compileOnly(libs.robolectric.android)
    
      testImplementation(libs.kotlin.test.common)
      testImplementation(libs.kotlin.test.junit)
    }
    
    animalsniffer {
      isIgnoreFailures = true
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 1.2K bytes
    - Click Count (1)
  3. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

        } catch (re: RuntimeException) {
          // Happens with non-robolectric unit tests
          System.err.println("Possibly running android unit test without robolectric")
          re.printStackTrace()
        } catch (ule: UnsatisfiedLinkError) {
          // Happens with Paparazzi - with Android classes on the classpath
          System.err.println("Possibly running android unit test without robolectric")
          ule.printStackTrace()
        }
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Oct 25 11:16:17 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt

    import okhttp3.internal.platform.PlatformRegistry
    import org.junit.AfterClass
    import org.junit.Before
    import org.junit.Test
    import org.junit.runner.RunWith
    import org.robolectric.RobolectricTestRunner
    import org.robolectric.annotation.Config
    
    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class DisabledInitialiserTest {
      @Before
      fun setContext() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  5. okhttp/build.gradle.kts

        }
        if (name.matches("test.*UnitTest".toRegex()) && javaLauncher.get().metadata.languageVersion.asInt() < 17) {
          // Work around robolectric requirements and limitations
          // https://github.com/robolectric/robolectric/issues/10419
          filter {
            excludeTest("okhttp3.internal.publicsuffix.PublicSuffixDatabaseTest", null)
          }
        }
      }
    }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  6. android-test/build.gradle.kts

      testImplementation(libs.assertk)
      testImplementation(projects.okhttpTls)
      "friendsTestImplementation"(projects.loggingInterceptor)
      testImplementation(libs.androidx.test.runner)
      testImplementation(libs.robolectric)
      testImplementation(libs.androidx.espresso.core)
      testImplementation(libs.squareup.okio.fakefilesystem)
      testImplementation(projects.okhttpTestingSupport)
      testImplementation(rootProject.libs.conscrypt.openjdk)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Nov 21 12:33:41 GMT 2025
    - 3.9K bytes
    - Click Count (2)
  7. gradle/libs.versions.toml

    playservices-safetynet = "com.google.android.gms:play-services-safetynet:18.1.0"
    retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
    robolectric-android = "org.robolectric:android-all:16-robolectric-13921718"
    robolectric = "org.robolectric:robolectric:4.16"
    #noinspection UnusedVersionCatalogEntry
    signature-android-apilevel21 = "net.sf.androidscents.signature:android-api-level-21:5.0.1_r2"
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 19 22:05:50 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  8. CHANGELOG.md

     *  New: `EventListener.plus()` makes it easier to observe events in multiple listeners.
     *  Fix: Don't spam logs with _‘Method isLoggable in android.util.Log not mocked.’_ when using
        OkHttp in Robolectric and Paparazzi tests.
     *  Upgrade: [Kotlin 2.2.21][kotlin_2_2_21].
     *  Upgrade: [Okio 3.16.2][okio_3_16_2].
     *  Upgrade: [ZSTD-KMP 0.4.0][zstd_kmp_0_4_0]. This update fixes a bug that caused APKs to fail
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 05 16:02:59 GMT 2025
    - 36.2K bytes
    - Click Count (2)
Back to Top