Libraries:
okio = "3.10.2"
kotlin = "2.1.21"
commonTest.dependencies {
implementation(libs.kotlin.test)
implementation(libs.fake.file.system)
implementation("app.cash.turbine:turbine:1.1.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
implementation(libs.kotlinx.datetime)
}
class FakeFileSystem() : FileSystemProvider {
override val fileSystem: FileSystem = FakeFileSystem()
override fun createPath(fileName: String) = "/tmp/$fileName".toPath()
}
When i run my unit test FakeFileSystem is failing with following error:
'void okio.fakefilesystem.FakeFileSystem.(kotlin.time.Clock, int, kotlin.jvm.internal.DefaultConstructorMarker)'
java.lang.NoSuchMethodError: 'void okio.fakefilesystem.FakeFileSystem.(kotlin.time.Clock, int, kotlin.jvm.internal.DefaultConstructorMarker)'
Libraries:
When i run my unit test FakeFileSystem is failing with following error:
'void okio.fakefilesystem.FakeFileSystem.(kotlin.time.Clock, int, kotlin.jvm.internal.DefaultConstructorMarker)'
java.lang.NoSuchMethodError: 'void okio.fakefilesystem.FakeFileSystem.(kotlin.time.Clock, int, kotlin.jvm.internal.DefaultConstructorMarker)'