Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for FakeFileSystem (0.28 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

    import okhttp3.testing.PlatformRule
    import okio.Path.Companion.toPath
    import okio.fakefilesystem.FakeFileSystem
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class CacheCorruptionTest {
      var fileSystem = FakeFileSystem()
    
      @JvmField
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 6K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/build.gradle.kts

      "friendsApi"(projects.okhttp)
    
      testImplementation(projects.okhttpTestingSupport)
      testImplementation(projects.mockwebserver)
      testImplementation(projects.mockwebserver3Junit5)
      testImplementation(libs.squareup.okio.fakefilesystem)
      testImplementation(libs.conscrypt.openjdk)
      testImplementation(libs.junit)
      testImplementation(libs.kotlin.test.common)
      testImplementation(libs.kotlin.test.junit)
    }
    
    mavenPublishing {
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-14 00:51
    - 905 bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt

    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    import okio.Path.Companion.toPath
    import okio.buffer
    import okio.fakefilesystem.FakeFileSystem
    
    class PostPath {
      private val client = OkHttpClient()
      private val fileSystem = FakeFileSystem()
      val path = "test.json".toPath()
    
      fun run() {
        fileSystem.write(path) {
          writeUtf8("{}")
        }
    
        val request =
          Request
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 1.7K bytes
    - Viewed (0)
  4. android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt

    import java.net.UnknownHostException
    import okhttp3.Cache
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okio.Path.Companion.toPath
    import okio.fakefilesystem.FakeFileSystem
    import org.junit.AssumptionViolatedException
    import org.junit.Before
    import org.junit.Test
    import org.junit.runner.RunWith
    import org.robolectric.RobolectricTestRunner
    import org.robolectric.annotation.Config
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 2.5K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

    import okhttp3.Protocol
    import okhttp3.RecordingEventListener
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    import okio.ByteString.Companion.decodeHex
    import okio.Path.Companion.toPath
    import okio.fakefilesystem.FakeFileSystem
    import org.junit.jupiter.api.Assertions.fail
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.ExtendWith
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 11.8K bytes
    - Viewed (0)
  6. android-test/build.gradle.kts

      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)
      testImplementation(rootProject.libs.junit.jupiter.engine)
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-10 11:15
    - 3.7K bytes
    - Viewed (2)
  7. samples/guide/build.gradle.kts

      implementation(projects.okhttpTestingSupport)
      implementation(projects.okhttpTls)
      implementation(libs.animalsniffer.annotations)
      implementation(libs.squareup.moshi)
      implementation(libs.squareup.okio.fakefilesystem)
      ksp(libs.squareup.moshi.compiler)
    }
    
    java {
      toolchain {
        languageVersion.set(JavaLanguageVersion.of(17))
      }
    }
    
    tasks.compileJava {
      options.isWarnings = false
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-17 05:15
    - 554 bytes
    - Viewed (0)
  8. native-image-tests/build.gradle.kts

      implementation(libs.junit.jupiter.params)
      implementation(libs.junit.platform.console)
      implementation(libs.kotlin.test.common)
      implementation(libs.kotlin.test.junit)
      implementation(libs.squareup.okio.fakefilesystem)
    
      "graalCompileOnly"(libs.nativeImageSvm)
      "graalCompileOnly"(libs.graal.sdk)
      nativeImageTestCompileOnly(graal.output.classesDirs)
    }
    
    graalvmNative {
      testSupport = true
    
      binaries {
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-27 21:44
    - 1.8K bytes
    - Viewed (0)
  9. gradle/libs.versions.toml

    squareup-kotlinPoet = "com.squareup:kotlinpoet:2.2.0"
    squareup-okio = { module = "com.squareup.okio:okio", version.ref = "com-squareup-okio" }
    squareup-okio-fakefilesystem = { module = "com.squareup.okio:okio-fakefilesystem", version.ref = "com-squareup-okio" }
    squareup-okio-nodefilesystem = { module = "com.squareup.okio:okio-nodefilesystem", version.ref = "com-squareup-okio" }
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-29 22:46
    - 8.1K bytes
    - Viewed (0)
  10. okhttp/build.gradle.kts

            implementation(libs.kotlinx.coroutines.core)
            implementation(libs.squareup.moshi)
            implementation(libs.squareup.moshi.kotlin)
            implementation(libs.squareup.okio.fakefilesystem)
            implementation(libs.conscrypt.openjdk)
            implementation(libs.junit)
            implementation(libs.junit.jupiter.api)
            implementation(libs.junit.jupiter.params)
    Registered: 2025-05-30 11:42
    - Last Modified: 2025-05-27 18:34
    - 8.8K bytes
    - Viewed (0)
Back to top