All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.mockk.impl.stub.SpyKStub.kt Maven / Gradle / Ivy

There is a newer version: 1.13.12
Show newest version
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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy