commonMain.io.mockk.impl.stub.SpyKStub.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockk-jvm Show documentation
Show all versions of mockk-jvm Show documentation
Mocking library for Kotlin
package io.mockk.impl.stub
import io.mockk.Invocation
import kotlin.reflect.KClass
class SpyKStub(
cls: KClass,
name: String,
gatewayAccess: StubGatewayAccess,
recordPrivateCalls: Boolean,
mockType: MockType
) : MockKStub(cls, name, false, false, gatewayAccess, recordPrivateCalls, mockType) {
override fun defaultAnswer(invocation: Invocation): Any? {
return invocation.originalCall()
}
}