- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for FakeFileSystem (0.06 sec)
-
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: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
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)) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 22 20:03:31 UTC 2025 - 2.3K bytes - Viewed (0) -
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: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.7K bytes - Viewed (0) -
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: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 14 00:51:50 UTC 2025 - 905 bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
import okio.IOException import okio.Path.Companion.toPath import okio.fakefilesystem.FakeFileSystem import okio.use import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Test import org.junit.jupiter.api.Timeout import org.junit.jupiter.api.extension.RegisterExtension @Timeout(30) open class TrailersTest { private val fileSystem = FakeFileSystem() @JvmField @RegisterExtension val platform = PlatformRule()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 18K bytes - Viewed (0) -
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: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 20:01:04 UTC 2025 - 3.8K bytes - Viewed (2) -
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.RegisterExtension
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 11.7K bytes - Viewed (0) -
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: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 17 05:15:32 UTC 2025 - 554 bytes - Viewed (0) -
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" } testcontainers = { module = "org.testcontainers:testcontainers", version.ref = "testcontainers" }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 31 17:41:20 UTC 2025 - 8.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
import okhttp3.internal.concurrent.TaskFaker import okhttp3.internal.io.FaultyFileSystem import okio.FileSystem import okio.Path import okio.Path.Companion.toPath import okio.Source import okio.buffer import okio.fakefilesystem.FakeFileSystem import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Assumptions import org.junit.jupiter.api.Tag import org.junit.jupiter.api.Timeout import org.junit.jupiter.api.io.TempDir
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 75.7K bytes - Viewed (0)