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

io.mockk.impl.stub.Stub.kt Maven / Gradle / Ivy

package io.mockk.impl.stub

import io.mockk.*
import kotlin.reflect.KClass

interface Stub {
    val name: String

    val type: KClass<*>

    fun addAnswer(matcher: InvocationMatcher, answer: Answer<*>)

    fun answer(invocation: Invocation): Any?

    fun childMockK(matcher: InvocationMatcher, childType: KClass<*>): Any

    fun recordCall(invocation: Invocation)

    fun allRecordedCalls(): List

    fun clear(answers: Boolean, calls: Boolean, childMocks: Boolean)

    fun handleInvocation(self: Any,
                         method: MethodDescription,
                         originalCall: () -> Any?,
                         args: Array): Any?

    fun toStr(): String

    fun stdObjectAnswer(invocation: Invocation): Any?
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy