Skip navigation links
A B C D E F G H I J M N O P R S T U V W 

A

acknowledgeVerified(mock) - Method in interface io.mockk.MockKGateway.VerificationAcknowledger
 
AllAnyMatcher<T> - Class in io.mockk
Matcher to replace all unspecified argument matchers to any() Handled by logic in a special way
AllAnyMatcher() - Constructor for class io.mockk.AllAnyMatcher
Matcher to replace all unspecified argument matchers to any() Handled by logic in a special way
and(obj) - Method in class io.mockk.MockKObjectScope
 
AndOrMatcher<T> - Class in io.mockk
Boolean logic "AND" and "OR" matcher composed of two other matchers
AndOrMatcher(and, first, second) - Constructor for class io.mockk.AndOrMatcher
Boolean logic "AND" and "OR" matcher composed of two other matchers
andThen(returnValue) - Method in class io.mockk.MockKAdditionalAnswerScope
 
andThen(answer) - Method in class io.mockk.MockKAdditionalAnswerScope
 
andThenAnswer(answer) - Method in class io.mockk.MockKAdditionalAnswerScope
 
andThenMany(values) - Method in class io.mockk.MockKAdditionalAnswerScope
 
andThenMany(values) - Method in class io.mockk.MockKAdditionalAnswerScope
 
andThenThrows(ex) - Method in class io.mockk.MockKAdditionalAnswerScope
 
Answer<T> - Interface in io.mockk
Provides return value for mocked function
answer(call) - Method in interface io.mockk.Answer
 
answer(call) - Method in class io.mockk.CoFunctionAnswer
 
answer(call) - Method in class io.mockk.ConstantAnswer
 
answer(call) - Method in class io.mockk.FunctionAnswer
 
answer(call) - Method in class io.mockk.ManyAnswersAnswer
 
answer(call) - Method in class io.mockk.ThrowingAnswer
 
Answer.DefaultImpls - Class in io.mockk
Provides return value for mocked function
answerOpportunity() - Method in interface io.mockk.MockKGateway.CallRecorder
 
answers(answer) - Method in class io.mockk.MockKStubScope
 
answers(answer) - Method in class io.mockk.MockKStubScope
 
anyBooleanVararg() - Method in class io.mockk.MockKMatcherScope
 
anyByteVararg() - Method in class io.mockk.MockKMatcherScope
 
anyCharVararg() - Method in class io.mockk.MockKMatcherScope
 
anyDoubleVararg() - Method in class io.mockk.MockKMatcherScope
 
anyFloatVararg() - Method in class io.mockk.MockKMatcherScope
 
anyIntVararg() - Method in class io.mockk.MockKMatcherScope
 
anyLongVararg() - Method in class io.mockk.MockKMatcherScope
 
anyShortVararg() - Method in class io.mockk.MockKMatcherScope
 
APIKt - Class in io.mockk
 
argsToStr() - Method in class io.mockk.MethodDescription
 
argToStr(argType) - Method in class io.mockk.MethodDescription
 
ArrayMatcher<T> - Class in io.mockk
Matcher that can match arrays via provided matchers for each element.
ArrayMatcher(matchers) - Constructor for class io.mockk.ArrayMatcher
Matcher that can match arrays via provided matchers for each element.
AssertMatcher<T> - Class in io.mockk
Deprecated. 
AssertMatcher(assertFunction, msg, argumentType, nullable) - Constructor for class io.mockk.AssertMatcher
Deprecated.
Checks if assertion is true

B

BackingFieldValue - Class in io.mockk
Manipulable field value
BackingFieldValue(name, getter, setter) - Constructor for class io.mockk.BackingFieldValue
Manipulable field value

C

Call - Class in io.mockk
Call happened for stubbed mock
Call(retType, invocation, matcher, fieldValueProvider) - Constructor for class io.mockk.Call
Call happened for stubbed mock
call(invocation) - Method in interface io.mockk.MockKGateway.CallRecorder
 
callCoroutine(p) - Method in class io.mockk.JvmCoroutineCall
 
Called - Class in io.mockk
Part of DSL. Object to represent phrase "wasNot Called"
callOriginal() - Method in class io.mockk.MockKAnswerScope
 
callWithContinuation(continuation) - Method in interface io.mockk.CoroutineCall
 
callWithContinuation(continuation) - Method in class io.mockk.JvmCoroutineCall
 
cancel(key) - Method in class io.mockk.MockKCancellationRegistry.RegistryPerType
 
cancelAll() - Method in class io.mockk.MockKCancellationRegistry
 
cancelAll() - Method in class io.mockk.MockKCancellationRegistry.RegistryPerType
 
cancelPut(key, newCancellation) - Method in class io.mockk.MockKCancellationRegistry.RegistryPerType
 
capture(arg) - Method in class io.mockk.AndOrMatcher
 
capture(arg) - Method in class io.mockk.ArrayMatcher
 
capture(arg) - Method in class io.mockk.CaptureMatcher
 
capture(arg) - Method in class io.mockk.CaptureNullableMatcher
 
capture(arg) - Method in interface io.mockk.CapturingMatcher
 
capture(arg) - Method in class io.mockk.CapturingSlotMatcher
 
capture(arg) - Method in class io.mockk.NotMatcher
 
capture(arg) - Method in class io.mockk.VarargMatcher
 
captureAnswer(invocation) - Method in class io.mockk.InvocationMatcher
 
captureArguments() - Method in interface io.mockk.MockKGateway.CallVerifier
 
captured - Variable in class io.mockk.CapturingSlot
 
captured($receiver) - Method in class io.mockk.MockKAnswerScope
 
CaptureMatcher<T> - Class in io.mockk
Matcher capturing all results to the list.
CaptureMatcher(captureList, argumentType) - Constructor for class io.mockk.CaptureMatcher
Matcher capturing all results to the list.
CaptureNullableMatcher<T> - Class in io.mockk
Matcher capturing all results to the list. Allows nulls
CaptureNullableMatcher(captureList, argumentType) - Constructor for class io.mockk.CaptureNullableMatcher
Matcher capturing all results to the list. Allows nulls
captureSubMatchers($receiver, arg) - Static method in class io.mockk.MatchersKt
 
CapturingMatcher - Interface in io.mockk
Captures the argument
CapturingSlot<T> - Class in io.mockk
Slot allows to capture one value.
CapturingSlot() - Constructor for class io.mockk.CapturingSlot
Slot allows to capture one value.
CapturingSlotMatcher<T> - Class in io.mockk
Matcher capturing one last value to the CapturingSlot
CapturingSlotMatcher(captureSlot, argumentType) - Constructor for class io.mockk.CapturingSlotMatcher
Matcher capturing one last value to the CapturingSlot
checkEquals($receiver, expected) - Static method in class io.mockk.APIKt
 
checkEquals($receiver, msg, expected) - Static method in class io.mockk.APIKt
 
checkType(arg) - Method in class io.mockk.AssertMatcher
Deprecated.
 
checkType(arg) - Method in interface io.mockk.TypedMatcher
 
checkType($this, arg) - Static method in class io.mockk.TypedMatcher.DefaultImpls
 
classForName(name) - Method in class io.mockk.InternalPlatformDsl
 
clear() - Method in class io.mockk.CapturingSlot
 
clear(answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKConstructorScope
 
clear(mocks, options) - Method in interface io.mockk.MockKGateway.Clearer
 
clear(type, options) - Method in interface io.mockk.MockKGateway.ConstructorMockFactory
 
clear(obj, options) - Method in interface io.mockk.MockKGateway.ObjectMockFactory
 
clear(type, options) - Method in interface io.mockk.MockKGateway.StaticMockFactory
 
clear(answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKObjectScope
 
clear(answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKStaticScope
 
clear(answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKUnmockKCompositeScope
 
clear(answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKUnmockKScope
 
clearAll(options) - Method in interface io.mockk.MockKGateway.Clearer
 
clearAll(options) - Method in interface io.mockk.MockKGateway.ConstructorMockFactory
 
clearAll(options) - Method in interface io.mockk.MockKGateway.ObjectMockFactory
 
clearAll(options) - Method in interface io.mockk.MockKGateway.StaticMockFactory
 
ClearOptions(answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Constructor for class io.mockk.MockKGateway.ClearOptions
 
coAndThen(answer) - Method in class io.mockk.MockKAdditionalAnswerScope
 
coAnswer(call, p) - Method in interface io.mockk.Answer
 
coAnswer($this, call, p) - Static method in class io.mockk.Answer.DefaultImpls
 
coAnswer(call, p) - Method in class io.mockk.CoFunctionAnswer
 
coAnswers(answer) - Method in class io.mockk.MockKStubScope
 
CoFunctionAnswer<T> - Class in io.mockk
Delegates reply to the lambda suspendable function
CoFunctionAnswer(answerFunc) - Constructor for class io.mockk.CoFunctionAnswer
Delegates reply to the lambda suspendable function
CoFunctionAnswer.Companion - Class in io.mockk
 
Companion - Static variable in class io.mockk.CoFunctionAnswer
 
Companion - Static variable in class io.mockk.JvmCoroutineCall
 
Companion - Static variable in interface io.mockk.MockKGateway
 
ComparingMatcher<T extends Comparable<? super T>> - Class in io.mockk
Matcher comparing values
ComparingMatcher(value, cmpFunc, argumentType) - Constructor for class io.mockk.ComparingMatcher
Matcher comparing values
component1() - Method in class io.mockk.AndOrMatcher
 
component1() - Method in class io.mockk.Call
 
component1() - Method in class io.mockk.CaptureMatcher
 
component1() - Method in class io.mockk.CaptureNullableMatcher
 
component1() - Method in class io.mockk.CapturingSlotMatcher
 
component1() - Method in class io.mockk.CoFunctionAnswer
 
component1() - Method in class io.mockk.ComparingMatcher
 
component1() - Method in class io.mockk.ConstantAnswer
 
component1() - Method in class io.mockk.ConstantMatcher
 
component1() - Method in class io.mockk.FunctionAnswer
 
component1() - Method in class io.mockk.FunctionMatcher
 
component1() - Method in class io.mockk.Invocation
 
component1() - Method in class io.mockk.InvocationMatcher
 
component1() - Method in class io.mockk.ManyAnswersAnswer
 
component1() - Method in class io.mockk.MethodDescription
 
component1() - Method in class io.mockk.MockKGateway.ClearOptions
 
component1() - Method in class io.mockk.MockKGateway.ExclusionParameters
 
component1() - Method in class io.mockk.MockKGateway.VerificationParameters
 
component1() - Method in class io.mockk.VerificationResult.Failure
 
component1() - Method in class io.mockk.VerificationResult.OK
 
component1() - Method in class io.mockk.NotMatcher
 
component1() - Method in class io.mockk.NullCheckMatcher
 
component1() - Method in class io.mockk.OfTypeMatcher
 
component1() - Method in class io.mockk.RecordedCall
 
component1() - Method in class io.mockk.StackElement
 
component1() - Method in class io.mockk.ThrowingAnswer
 
component2() - Method in class io.mockk.AndOrMatcher
 
component2() - Method in class io.mockk.Call
 
component2() - Method in class io.mockk.CaptureMatcher
 
component2() - Method in class io.mockk.CaptureNullableMatcher
 
component2() - Method in class io.mockk.CapturingSlotMatcher
 
component2() - Method in class io.mockk.ComparingMatcher
 
component2() - Method in class io.mockk.EqMatcher
 
component2() - Method in class io.mockk.FunctionMatcher
 
component2() - Method in class io.mockk.Invocation
 
component2() - Method in class io.mockk.InvocationMatcher
 
component2() - Method in class io.mockk.MethodDescription
 
component2() - Method in class io.mockk.MockKGateway.ClearOptions
 
component2() - Method in class io.mockk.MockKGateway.VerificationParameters
 
component2() - Method in class io.mockk.RecordedCall
 
component2() - Method in class io.mockk.StackElement
 
component3() - Method in class io.mockk.AndOrMatcher
 
component3() - Method in class io.mockk.Call
 
component3() - Method in class io.mockk.ComparingMatcher
 
component3() - Method in class io.mockk.EqMatcher
 
component3() - Method in class io.mockk.Invocation
 
component3() - Method in class io.mockk.InvocationMatcher
 
component3() - Method in class io.mockk.MethodDescription
 
component3() - Method in class io.mockk.MockKGateway.ClearOptions
 
component3() - Method in class io.mockk.MockKGateway.VerificationParameters
 
component3() - Method in class io.mockk.RecordedCall
 
component3() - Method in class io.mockk.StackElement
 
component4() - Method in class io.mockk.Call
 
component4() - Method in class io.mockk.Invocation
 
component4() - Method in class io.mockk.InvocationMatcher
 
component4() - Method in class io.mockk.MethodDescription
 
component4() - Method in class io.mockk.MockKGateway.ClearOptions
 
component4() - Method in class io.mockk.MockKGateway.VerificationParameters
 
component4() - Method in class io.mockk.RecordedCall
 
component4() - Method in class io.mockk.StackElement
 
component5() - Method in class io.mockk.Invocation
 
component5() - Method in class io.mockk.MethodDescription
 
component5() - Method in class io.mockk.MockKGateway.ClearOptions
 
component5() - Method in class io.mockk.MockKGateway.VerificationParameters
 
component5() - Method in class io.mockk.RecordedCall
 
component5() - Method in class io.mockk.StackElement
 
component6() - Method in class io.mockk.Invocation
 
component6() - Method in class io.mockk.MethodDescription
 
component6() - Method in class io.mockk.RecordedCall
 
component7() - Method in class io.mockk.Invocation
 
component7() - Method in class io.mockk.MethodDescription
 
component8() - Method in class io.mockk.Invocation
 
component8() - Method in class io.mockk.MethodDescription
 
component9() - Method in class io.mockk.MethodDescription
 
CompositeMatcher<T> - Interface in io.mockk
Matcher composed from several other matchers.
ConstantAnswer<T> - Class in io.mockk
Returns one constant reply
ConstantAnswer(constantValue) - Constructor for class io.mockk.ConstantAnswer
Returns one constant reply
ConstantMatcher<T> - Class in io.mockk
Matcher that always returns one same value.
ConstantMatcher(constValue) - Constructor for class io.mockk.ConstantMatcher
Matcher that always returns one same value.
constructorMockk(cls, recordPrivateCalls, localToThread) - Method in interface io.mockk.MockKGateway.ConstructorMockFactory
 
copy(and, first, second) - Method in class io.mockk.AndOrMatcher
Boolean logic "AND" and "OR" matcher composed of two other matchers
copy(matchers) - Method in class io.mockk.ArrayMatcher
Matcher that can match arrays via provided matchers for each element.
copy(retType, invocation, matcher, fieldValueProvider) - Method in class io.mockk.Call
Call happened for stubbed mock
copy(captureList, argumentType) - Method in class io.mockk.CaptureMatcher
Matcher capturing all results to the list.
copy(captureList, argumentType) - Method in class io.mockk.CaptureNullableMatcher
Matcher capturing all results to the list. Allows nulls
copy(captureSlot, argumentType) - Method in class io.mockk.CapturingSlotMatcher
Matcher capturing one last value to the CapturingSlot
copy(answerFunc) - Method in class io.mockk.CoFunctionAnswer
Delegates reply to the lambda suspendable function
copy(value, cmpFunc, argumentType) - Method in class io.mockk.ComparingMatcher
Matcher comparing values
copy(constantValue) - Method in class io.mockk.ConstantAnswer
Returns one constant reply
copy(constValue) - Method in class io.mockk.ConstantMatcher
Matcher that always returns one same value.
copy(valueArg, ref, inverse) - Method in class io.mockk.EqMatcher
Matcher that checks equality. By reference and by value (equals method)
copy(answerFunc) - Method in class io.mockk.FunctionAnswer
Delegates reply to the lambda function
copy(matchingFunc, argumentType) - Method in class io.mockk.FunctionMatcher
Delegates matching to lambda function
copy(self, stub, method, args, timestamp, callStack, originalCall, fieldValueProvider) - Method in class io.mockk.Invocation
Mock invocation
copy(self, method, args, allAny) - Method in class io.mockk.InvocationMatcher
Checks if invocation is matching via number of matchers
copy(answers) - Method in class io.mockk.ManyAnswersAnswer
Returns many different replies, each time moving the next list element. Stops at the end.
copy(name, returnType, returnsUnit, returnsNothing, isSuspend, declaringClass, paramTypes, varArgsArg, privateCall) - Method in class io.mockk.MethodDescription
Provides information about method
copy(answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKGateway.ClearOptions
 
copy(current) - Method in class io.mockk.MockKGateway.ExclusionParameters
Parameters of exclusion
copy(ordering, min, max, inverse, timeout) - Method in class io.mockk.MockKGateway.VerificationParameters
Parameters of verification
copy(message) - Method in class io.mockk.VerificationResult.Failure
 
copy(verifiedCalls) - Method in class io.mockk.VerificationResult.OK
 
copy(value) - Method in class io.mockk.NotMatcher
Boolean logic "NOT" matcher composed of one matcher
copy(inverse) - Method in class io.mockk.NullCheckMatcher
Checks if argument is null or non-null
copy(cls) - Method in class io.mockk.OfTypeMatcher
Checks matcher data type
copy(retValue, isRetValueMock, retType, matcher, selfChain, argChains) - Method in class io.mockk.RecordedCall
Matched call
copy(className, fileName, methodName, line, nativeMethod) - Method in class io.mockk.StackElement
Element of stack trace.
copy(ex) - Method in class io.mockk.ThrowingAnswer
Throws exception instead of function reply
copy(all, matcher, prefix, postfix) - Method in class io.mockk.VarargMatcher
 
CoroutineCall<T> - Interface in io.mockk
 
coroutineCall(lambda) - Method in class io.mockk.InternalPlatformDsl
 
counter() - Method in class io.mockk.InternalPlatformDsl
 

D

deepEquals(obj1, obj2) - Method in class io.mockk.InternalPlatformDsl
 
deregister() - Method in interface io.mockk.Deregisterable
 
Deregisterable - Interface in io.mockk
Allows to deregister something was registered before
deregisterFactory(factory) - Method in interface io.mockk.MockKGateway.InstanceFactoryRegistry
 
discardLastCallRound() - Method in interface io.mockk.MockKGateway.CallRecorder
 
doMock() - Method in class io.mockk.MockKConstructorScope
 
doMock() - Method in class io.mockk.MockKObjectScope
 
doMock() - Method in class io.mockk.MockKStaticScope
 
doMock() - Method in class io.mockk.MockKUnmockKCompositeScope
 
doMock() - Method in class io.mockk.MockKUnmockKScope
 
done() - Method in interface io.mockk.MockKGateway.CallRecorder
 
dynamicCall(self, methodName, args, anyContinuationGen) - Method in class io.mockk.InternalPlatformDsl
 
DynamicCall(self, methodName, anyContinuationGen) - Constructor for class io.mockk.MockKMatcherScope.DynamicCall
 
DynamicCallLong(self, methodName, anyContinuationGen) - Constructor for class io.mockk.MockKMatcherScope.DynamicCallLong
 
dynamicGet(self, name) - Method in class io.mockk.InternalPlatformDsl
 
dynamicSet(self, name, value) - Method in class io.mockk.InternalPlatformDsl
 
dynamicSetField(self, name, value) - Method in class io.mockk.InternalPlatformDsl
 
DynamicSetProperty(self, name) - Constructor for class io.mockk.MockKMatcherScope.DynamicSetProperty
 

E

EqMatcher<T> - Class in io.mockk
Matcher that checks equality. By reference and by value (equals method)
EqMatcher(valueArg, ref, inverse) - Constructor for class io.mockk.EqMatcher
Matcher that checks equality. By reference and by value (equals method)
equals(p) - Method in class io.mockk.AndOrMatcher
 
equals(p) - Method in class io.mockk.ArrayMatcher
 
equals(p) - Method in class io.mockk.Call
 
equals(p) - Method in class io.mockk.CaptureMatcher
 
equals(p) - Method in class io.mockk.CaptureNullableMatcher
 
equals(p) - Method in class io.mockk.CapturingSlotMatcher
 
equals(p) - Method in class io.mockk.CoFunctionAnswer
 
equals(p) - Method in class io.mockk.ComparingMatcher
 
equals(p) - Method in class io.mockk.ConstantAnswer
 
equals(p) - Method in class io.mockk.ConstantMatcher
 
equals(p) - Method in class io.mockk.EqMatcher
 
equals(p) - Method in class io.mockk.FunctionAnswer
 
equals(p) - Method in class io.mockk.FunctionMatcher
 
equals(other) - Method in class io.mockk.Invocation
 
equals(other) - Method in class io.mockk.InvocationMatcher
 
equals(p) - Method in class io.mockk.ManyAnswersAnswer
 
equals(other) - Method in class io.mockk.MethodDescription
 
equals(p) - Method in class io.mockk.MockKGateway.ClearOptions
 
equals(p) - Method in class io.mockk.MockKGateway.ExclusionParameters
 
equals(p) - Method in class io.mockk.MockKGateway.VerificationParameters
 
equals(p) - Method in class io.mockk.VerificationResult.Failure
 
equals(p) - Method in class io.mockk.VerificationResult.OK
 
equals(p) - Method in class io.mockk.NotMatcher
 
equals(p) - Method in class io.mockk.NullCheckMatcher
 
equals(p) - Method in class io.mockk.OfTypeMatcher
 
equals(other) - Method in class io.mockk.RecordedCall
 
equals(p) - Method in class io.mockk.StackElement
 
equals(p) - Method in class io.mockk.ThrowingAnswer
 
equals(p) - Method in class io.mockk.VarargMatcher
 
equivalent() - Method in class io.mockk.AssertMatcher
Deprecated.
 
equivalent() - Method in class io.mockk.CaptureMatcher
 
equivalent() - Method in class io.mockk.CaptureNullableMatcher
 
equivalent() - Method in class io.mockk.CapturingSlotMatcher
 
equivalent() - Method in interface io.mockk.EquivalentMatcher
 
equivalent() - Method in class io.mockk.FunctionMatcher
 
equivalent() - Method in class io.mockk.InvokeMatcher
 
EquivalentMatcher - Interface in io.mockk
Allows to substitute matcher to find correct chained call
estimateCallRounds() - Method in interface io.mockk.MockKGateway.CallRecorder
 
every(mockBlock, coMockBlock) - Method in interface io.mockk.MockKGateway.Stubber
 
exclude(params, mockBlock, coMockBlock) - Method in interface io.mockk.MockKGateway.Excluder
 
ExclusionParameters(current) - Constructor for class io.mockk.MockKGateway.ExclusionParameters
Parameters of exclusion

F

Failure(message) - Constructor for class io.mockk.VerificationResult.Failure
 
FunctionAnswer<T> - Class in io.mockk
Delegates reply to the lambda function
FunctionAnswer(answerFunc) - Constructor for class io.mockk.FunctionAnswer
Delegates reply to the lambda function
FunctionMatcher<T> - Class in io.mockk
Delegates matching to lambda function
FunctionMatcher(matchingFunc, argumentType) - Constructor for class io.mockk.FunctionMatcher
Delegates matching to lambda function

G

get($receiver, name) - Method in class io.mockk.MockKMatcherScope
 
getActual() - Method in class io.mockk.MockKAssertScope
 
getAllAny() - Method in class io.mockk.InvocationMatcher
 
getAnd() - Method in class io.mockk.AndOrMatcher
 
getAnswerFunc() - Method in class io.mockk.CoFunctionAnswer
 
getAnswerFunc() - Method in class io.mockk.FunctionAnswer
 
getAnswers() - Method in class io.mockk.ManyAnswersAnswer
 
getAnswers() - Method in class io.mockk.MockKGateway.ClearOptions
 
getAnyContinuationGen() - Method in class io.mockk.MockKMatcherScope.DynamicCall
 
getAnyContinuationGen() - Method in class io.mockk.MockKMatcherScope.DynamicCallLong
 
getArgChains() - Method in class io.mockk.RecordedCall
 
getArgs() - Method in class io.mockk.Invocation
 
getArgs() - Method in class io.mockk.InvocationMatcher
 
getArgs() - Method in class io.mockk.MockKAnswerScope
 
getArgumentType() - Method in class io.mockk.AssertMatcher
Deprecated.
 
getArgumentType() - Method in class io.mockk.CaptureMatcher
 
getArgumentType() - Method in class io.mockk.CaptureNullableMatcher
 
getArgumentType() - Method in class io.mockk.CapturingSlotMatcher
 
getArgumentType() - Method in class io.mockk.ComparingMatcher
 
getArgumentType() - Method in class io.mockk.FunctionMatcher
 
getArgumentType() - Method in interface io.mockk.TypedMatcher
 
getAssertFunction() - Method in class io.mockk.AssertMatcher
Deprecated.
 
getBlock() - Method in class io.mockk.InvokeMatcher
 
getCall() - Method in class io.mockk.MockKAnswerScope
 
getCallMethod() - Method in class io.mockk.JvmCoroutineCall.Companion
 
getCallRecorder() - Method in interface io.mockk.MockKGateway
 
getCalls() - Method in interface io.mockk.MockKGateway.CallRecorder
 
getCallStack() - Method in class io.mockk.Invocation
 
getCaptured() - Method in class io.mockk.CapturingSlot
 
getCaptureList() - Method in class io.mockk.CaptureMatcher
 
getCaptureList() - Method in class io.mockk.CaptureNullableMatcher
 
getCaptureSlot() - Method in class io.mockk.CapturingSlotMatcher
 
getChildMocks() - Method in class io.mockk.MockKGateway.ClearOptions
 
getClassName() - Method in class io.mockk.StackElement
 
getClearer() - Method in interface io.mockk.MockKGateway
 
getCls() - Method in class io.mockk.OfTypeMatcher
 
getCmpFunc() - Method in class io.mockk.ComparingMatcher
 
getConstantValue() - Method in class io.mockk.ConstantAnswer
 
getConstructorMockFactory() - Method in interface io.mockk.MockKGateway
 
getConstValue() - Method in class io.mockk.ConstantMatcher
 
getCurrent() - Method in class io.mockk.MockKGateway.ExclusionParameters
 
getDeclaringClass() - Method in class io.mockk.MethodDescription
 
getEx() - Method in class io.mockk.ThrowingAnswer
 
getExcluder() - Method in interface io.mockk.MockKGateway
 
getExclusionRules() - Method in class io.mockk.MockKGateway.ClearOptions
 
getFieldValue() - Method in class io.mockk.MockKAnswerScope
 
getFieldValueAny() - Method in class io.mockk.MockKAnswerScope
 
getFieldValueProvider() - Method in class io.mockk.Call
 
getFieldValueProvider() - Method in class io.mockk.Invocation
 
getFileName() - Method in class io.mockk.StackElement
 
getFirst() - Method in class io.mockk.AndOrMatcher
 
getFirst() - Method in class io.mockk.MockKUnmockKCompositeScope
 
getFlatAnswers() - Method in interface io.mockk.ManyAnswerable
 
getFlatAnswers() - Method in class io.mockk.ManyAnswersAnswer
 
getGetter() - Method in class io.mockk.BackingFieldValue
 
getHasMore() - Method in interface io.mockk.ManyAnswerable
 
getHasMore() - Method in class io.mockk.ManyAnswersAnswer
 
getImplementation() - Method in class io.mockk.MockKGateway.Companion
 
getInstanceFactoryRegistry() - Method in interface io.mockk.MockKGateway
 
getInverse() - Method in class io.mockk.EqMatcher
 
getInverse() - Method in class io.mockk.MockKGateway.VerificationParameters
 
getInverse() - Method in class io.mockk.NullCheckMatcher
 
getInvocation() - Method in class io.mockk.Call
 
getInvocation() - Method in class io.mockk.MockKAnswerScope
 
getLambda() - Method in class io.mockk.MockKMatcherScope
 
getLine() - Method in class io.mockk.StackElement
 
getLocalToThread() - Method in class io.mockk.MockKConstructorScope
 
getMatcher() - Method in class io.mockk.Call
 
getMatcher() - Method in class io.mockk.MockKAnswerScope
 
getMatcher() - Method in class io.mockk.RecordedCall
 
getMatches() - Method in class io.mockk.MockKGateway.VerificationResult
 
getMatchingFunc() - Method in class io.mockk.FunctionMatcher
 
getMax() - Method in class io.mockk.MockKGateway.VerificationParameters
 
getMessage() - Method in class io.mockk.VerificationResult.Failure
 
getMethod() - Method in class io.mockk.Invocation
 
getMethod() - Method in class io.mockk.InvocationMatcher
 
getMethod() - Method in class io.mockk.MockKAnswerScope
 
getMethodName() - Method in class io.mockk.MockKMatcherScope.DynamicCall
 
getMethodName() - Method in class io.mockk.MockKMatcherScope.DynamicCallLong
 
getMethodName() - Method in class io.mockk.StackElement
 
getMin() - Method in class io.mockk.MockKGateway.VerificationParameters
 
getMockFactory() - Method in interface io.mockk.MockKGateway
 
getMockInitializer() - Method in interface io.mockk.MockKGateway
 
getMockTypeChecker() - Method in interface io.mockk.MockKGateway
 
getMsg() - Method in class io.mockk.AssertMatcher
Deprecated.
 
getName() - Method in class io.mockk.BackingFieldValue
 
getName() - Method in class io.mockk.MethodDescription
 
getName() - Method in class io.mockk.MockKMatcherScope.DynamicSetProperty
 
getNArgs() - Method in class io.mockk.MockKAnswerScope
 
getNArgs() - Method in class io.mockk.MockKMatcherScope.MockKVarargScope
 
getNativeMethod() - Method in class io.mockk.StackElement
 
getNothing() - Method in class io.mockk.MockKAnswerScope
 
getNullable() - Method in class io.mockk.AssertMatcher
Deprecated.
 
getObjectMockFactory() - Method in interface io.mockk.MockKGateway
 
getObjects() - Method in class io.mockk.MockKObjectScope
 
getOperandValues() - Method in class io.mockk.AndOrMatcher
 
getOperandValues() - Method in interface io.mockk.CompositeMatcher
 
getOperandValues() - Method in class io.mockk.NotMatcher
 
getOrdering() - Method in class io.mockk.MockKGateway.VerificationParameters
 
getOriginalCall() - Method in class io.mockk.Invocation
 
getParamTypes() - Method in class io.mockk.MethodDescription
 
getPosition() - Method in class io.mockk.MockKMatcherScope.MockKVarargScope
 
getPrivateCall() - Method in class io.mockk.MethodDescription
 
getProperty($receiver, name) - Method in class io.mockk.MockKMatcherScope
 
getRecordedCalls() - Method in class io.mockk.MockKGateway.ClearOptions
 
getRecordPrivateCalls() - Method in class io.mockk.MockKConstructorScope
 
getRecordPrivateCalls() - Method in class io.mockk.MockKObjectScope
 
getRecordPrivateCalls() - Method in class io.mockk.MockKSettings
 
getRef() - Method in class io.mockk.EqMatcher
 
getRelaxed() - Method in class io.mockk.MockKSettings
 
getRelaxUnitFun() - Method in class io.mockk.MockKSettings
 
getRetType() - Method in class io.mockk.Call
 
getRetType() - Method in class io.mockk.RecordedCall
 
getReturnsNothing() - Method in class io.mockk.MethodDescription
 
getReturnsUnit() - Method in class io.mockk.MethodDescription
 
getReturnType() - Method in class io.mockk.MethodDescription
 
getRetValue() - Method in class io.mockk.RecordedCall
 
getSecond() - Method in class io.mockk.AndOrMatcher
 
getSecond() - Method in class io.mockk.MockKUnmockKCompositeScope
 
getSelf() - Method in class io.mockk.Invocation
 
getSelf() - Method in class io.mockk.InvocationMatcher
 
getSelf() - Method in class io.mockk.MockKAnswerScope
 
getSelf() - Method in class io.mockk.MockKMatcherScope.DynamicCall
 
getSelf() - Method in class io.mockk.MockKMatcherScope.DynamicCallLong
 
getSelf() - Method in class io.mockk.MockKMatcherScope.DynamicSetProperty
 
getSelfChain() - Method in class io.mockk.RecordedCall
 
getSetter() - Method in class io.mockk.BackingFieldValue
 
getStaticMockFactory() - Method in interface io.mockk.MockKGateway
 
getStaticTypes() - Method in class io.mockk.MockKStaticScope
 
getStub() - Method in class io.mockk.Invocation
 
getStubber() - Method in interface io.mockk.MockKGateway
 
getSubMatchers() - Method in class io.mockk.AndOrMatcher
 
getSubMatchers() - Method in interface io.mockk.CompositeMatcher
 
getSubMatchers() - Method in class io.mockk.NotMatcher
 
getTimeout() - Method in class io.mockk.MockKGateway.VerificationParameters
 
getTimestamp() - Method in class io.mockk.Invocation
 
getType() - Method in class io.mockk.MockKConstructorScope
 
getValue() - Method in class io.mockk.ComparingMatcher
 
getValue() - Method in class io.mockk.EqMatcher
 
getValue() - Method in interface io.mockk.InternalCounter
 
getValue() - Method in interface io.mockk.InternalRef
 
getValue() - Method in class io.mockk.MockKAnswerScope
 
getValue() - Method in class io.mockk.NotMatcher
 
getValueAny() - Method in class io.mockk.MockKAnswerScope
 
getVarArgsArg() - Method in class io.mockk.MethodDescription
 
getVerificationAcknowledger() - Method in interface io.mockk.MockKGateway
 
getVerificationMarks() - Method in class io.mockk.MockKGateway.ClearOptions
 
getVerifiedCalls() - Method in class io.mockk.VerificationResult.OK
 
getVerifier() - Method in interface io.mockk.MockKGateway
 

H

hashCode() - Method in class io.mockk.AndOrMatcher
 
hashCode() - Method in class io.mockk.ArrayMatcher
 
hashCode() - Method in class io.mockk.Call
 
hashCode() - Method in class io.mockk.CaptureMatcher
 
hashCode() - Method in class io.mockk.CaptureNullableMatcher
 
hashCode() - Method in class io.mockk.CapturingSlotMatcher
 
hashCode() - Method in class io.mockk.CoFunctionAnswer
 
hashCode() - Method in class io.mockk.ComparingMatcher
 
hashCode() - Method in class io.mockk.ConstantAnswer
 
hashCode() - Method in class io.mockk.ConstantMatcher
 
hashCode() - Method in class io.mockk.EqMatcher
 
hashCode() - Method in class io.mockk.FunctionAnswer
 
hashCode() - Method in class io.mockk.FunctionMatcher
 
hashCode() - Method in class io.mockk.Invocation
 
hashCode() - Method in class io.mockk.InvocationMatcher
 
hashCode() - Method in class io.mockk.ManyAnswersAnswer
 
hashCode() - Method in class io.mockk.MethodDescription
 
hashCode() - Method in class io.mockk.MockKGateway.ClearOptions
 
hashCode() - Method in class io.mockk.MockKGateway.ExclusionParameters
 
hashCode() - Method in class io.mockk.MockKGateway.VerificationParameters
 
hashCode() - Method in class io.mockk.VerificationResult.Failure
 
hashCode() - Method in class io.mockk.VerificationResult.OK
 
hashCode() - Method in class io.mockk.NotMatcher
 
hashCode() - Method in class io.mockk.NullCheckMatcher
 
hashCode() - Method in class io.mockk.OfTypeMatcher
 
hashCode() - Method in class io.mockk.RecordedCall
 
hashCode() - Method in class io.mockk.StackElement
 
hashCode() - Method in class io.mockk.ThrowingAnswer
 
hashCode() - Method in class io.mockk.VarargMatcher
 
hint($receiver, cls, n) - Method in class io.mockk.MockKMatcherScope
 
hintNextReturnType(cls, n) - Method in interface io.mockk.MockKGateway.CallRecorder
 

I

identityHashCode(obj) - Method in class io.mockk.InternalPlatformDsl
 
implementation - Static variable in class io.mockk.MockKGateway.Companion
 
increment() - Method in interface io.mockk.InternalCounter
 
initAnnotatedMocks(targets, overrideRecordPrivateCalls, relaxUnitFun, relaxed) - Method in interface io.mockk.MockKGateway.MockInitializer
 
INSTANCE - Static variable in class io.mockk.Called
Part of DSL. Object to represent phrase "wasNot Called"
INSTANCE - Static variable in class io.mockk.InternalPlatformDsl
 
INSTANCE - Static variable in class io.mockk.MockKCancellationRegistry
 
INSTANCE - Static variable in class io.mockk.MockKDsl
DSL entry points.
INSTANCE - Static variable in class io.mockk.MockKSettings
 
INSTANCE - Static variable in class io.mockk.Runs
Part of DSL. Object to represent phrase "just Runs"
instantiate(cls) - Method in interface io.mockk.MockKGateway.InstanceFactory
 
internalClearAllMocks(answers, recordedCalls, childMocks, regularMocks, objectMocks, staticMocks, constructorMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKDsl
 
internalClearConstructorMockk(classes, answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKDsl
Clear constructor mocks.
internalClearMocks(firstMock, mocks, answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKDsl
Resets information associated with mock
internalClearObjectMockk(objects, answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKDsl
Clear object mocks.
internalClearStaticMockk(classes, answers, recordedCalls, childMocks, verificationMarks, exclusionRules) - Method in class io.mockk.MockKDsl
Clear static mocks.
internalCoEvery(stubBlock) - Method in class io.mockk.MockKDsl
Starts a block of stubbing for coroutines. Part of DSL.
internalCoExcludeRecords(current, excludeBlock) - Method in class io.mockk.MockKDsl
Exclude calls from recording for a suspend block
internalConfirmVerified(mocks) - Method in class io.mockk.MockKDsl
Checks if all recorded calls were verified.
InternalCounter - Interface in io.mockk
 
internalCoVerify(ordering, inverse, atLeast, atMost, exactly, timeout, verifyBlock) - Method in class io.mockk.MockKDsl
Verify for coroutines
internalCoVerifyAll(inverse, verifyBlock) - Method in class io.mockk.MockKDsl
Shortcut for all calls verification
internalCoVerifyOrder(inverse, verifyBlock) - Method in class io.mockk.MockKDsl
Shortcut for ordered calls verification
internalCoVerifySequence(inverse, verifyBlock) - Method in class io.mockk.MockKDsl
Shortcut for sequence calls verification
internalEvery(stubBlock) - Method in class io.mockk.MockKDsl
Starts a block of stubbing. Part of DSL.
internalExcludeRecords(current, excludeBlock) - Method in class io.mockk.MockKDsl
Exclude calls from recording
internalInitAnnotatedMocks(targets, overrideRecordPrivateCalls, relaxUnitFun, relaxed) - Method in class io.mockk.MockKDsl
Initializes
internalIsMockKMock(mock, regular, spy, objectMock, staticMock, constructorMock) - Method in class io.mockk.MockKDsl
 
internalMockkClass(type, name, relaxed, moreInterfaces, relaxUnitFun, block) - Method in class io.mockk.MockKDsl
Builds a mock for a class. Deprecated
internalMockkConstructor(classes, recordPrivateCalls, localToThread) - Method in class io.mockk.MockKDsl
Constructor mockk
internalMockkObject(objects, recordPrivateCalls) - Method in class io.mockk.MockKDsl
Object mockk
internalMockkStatic(classes) - Method in class io.mockk.MockKDsl
Static mockk
internalObjectMockk(objs, recordPrivateCalls) - Method in class io.mockk.MockKDsl
Declares object mockk. Deprecated
InternalPlatformDsl - Class in io.mockk
 
InternalRef<T> - Interface in io.mockk
 
internalSpyk(objToCopy, name, moreInterfaces, recordPrivateCalls, block) - Method in class io.mockk.MockKDsl
Builds a new spy for specified class. Initializes object via default constructor.
internalStaticMockk(kClass) - Method in class io.mockk.MockKDsl
Declares static mockk. Deprecated
internalSubstitute($receiver, map) - Static method in class io.mockk.APIKt
 
internalSubstitute($receiver, map) - Static method in class io.mockk.APIKt
 
internalUnmockkAll() - Method in class io.mockk.MockKDsl
Unmockk everything
internalUnmockkConstructor(classes) - Method in class io.mockk.MockKDsl
Cancel constructor mocks.
internalUnmockkObject(objects) - Method in class io.mockk.MockKDsl
Cancel object mocks.
internalUnmockkStatic(classes) - Method in class io.mockk.MockKDsl
Cancel static mocks.
internalVerify(ordering, inverse, atLeast, atMost, exactly, timeout, verifyBlock) - Method in class io.mockk.MockKDsl
Verifies calls happened in the past. Part of DSL
internalVerifyAll(inverse, verifyBlock) - Method in class io.mockk.MockKDsl
Shortcut for all calls verification
internalVerifyOrder(inverse, verifyBlock) - Method in class io.mockk.MockKDsl
Shortcut for ordered calls verification
internalVerifySequence(inverse, verifyBlock) - Method in class io.mockk.MockKDsl
Shortcut for sequence calls verification
Invocation - Class in io.mockk
Mock invocation
Invocation(self, stub, method, args, timestamp, callStack, originalCall, fieldValueProvider) - Constructor for class io.mockk.Invocation
Mock invocation
InvocationMatcher - Class in io.mockk
Checks if invocation is matching via number of matchers
InvocationMatcher(self, method, args, allAny) - Constructor for class io.mockk.InvocationMatcher
Checks if invocation is matching via number of matchers
invoke(args) - Method in class io.mockk.MockKMatcherScope.DynamicCall
 
invoke($receiver, name) - Method in class io.mockk.MockKMatcherScope
 
InvokeMatcher<T> - Class in io.mockk
Invokes lambda
InvokeMatcher(block) - Constructor for class io.mockk.InvokeMatcher
Invokes lambda
invokeNoArgs($receiver, name) - Method in class io.mockk.MockKMatcherScope
 
io.mockk - package io.mockk
 
isCaptured() - Method in class io.mockk.CapturingSlot
 
isConstructorMock(mock) - Method in interface io.mockk.MockKGateway.MockTypeChecker
 
isEquals() - Method in class io.mockk.MethodDescription
 
isHashCode() - Method in class io.mockk.MethodDescription
 
isLastCallReturnsNothing() - Method in interface io.mockk.MockKGateway.CallRecorder
 
isMock(value) - Method in interface io.mockk.MockKGateway.MockFactory
 
isNull() - Method in class io.mockk.CapturingSlot
 
isObjectMock(mock) - Method in interface io.mockk.MockKGateway.MockTypeChecker
 
isRegularMock(mock) - Method in interface io.mockk.MockKGateway.MockTypeChecker
 
isRetValueMock() - Method in class io.mockk.RecordedCall
 
isSpy(mock) - Method in interface io.mockk.MockKGateway.MockTypeChecker
 
isStaticMock(mock) - Method in interface io.mockk.MockKGateway.MockTypeChecker
 
isSuspend() - Method in class io.mockk.MethodDescription
 
isToString() - Method in class io.mockk.MethodDescription
 

J

just($receiver, runs) - Static method in class io.mockk.APIKt
Part of DSL. Answer placeholder for Unit returning functions.
JvmCoroutineCall<T> - Class in io.mockk
 
JvmCoroutineCall(lambda) - Constructor for class io.mockk.JvmCoroutineCall
 
JvmCoroutineCall.Companion - Class in io.mockk
 

M

makeAccessible(obj) - Method in class io.mockk.InternalPlatformDsl
 
ManyAnswerable<T> - Interface in io.mockk
Required to signalize many answers available
ManyAnswersAnswer<T> - Class in io.mockk
Returns many different replies, each time moving the next list element. Stops at the end.
ManyAnswersAnswer(answers) - Constructor for class io.mockk.ManyAnswersAnswer
Returns many different replies, each time moving the next list element. Stops at the end.
markCallVerified(invocation) - Method in interface io.mockk.MockKGateway.VerificationAcknowledger
 
match(arg) - Method in class io.mockk.AllAnyMatcher
 
match(arg) - Method in class io.mockk.AndOrMatcher
 
match(arg) - Method in class io.mockk.ArrayMatcher
 
match(arg) - Method in class io.mockk.AssertMatcher
Deprecated.
 
match(arg) - Method in class io.mockk.CaptureMatcher
 
match(arg) - Method in class io.mockk.CaptureNullableMatcher
 
match(arg) - Method in class io.mockk.CapturingSlotMatcher
 
match(arg) - Method in class io.mockk.ComparingMatcher
 
match(arg) - Method in class io.mockk.ConstantMatcher
 
match(arg) - Method in class io.mockk.EqMatcher
 
match(arg) - Method in class io.mockk.FunctionMatcher
 
match(invocation) - Method in class io.mockk.InvocationMatcher
 
match(arg) - Method in class io.mockk.InvokeMatcher
 
match(arg) - Method in interface io.mockk.Matcher
 
match(arg) - Method in class io.mockk.NotMatcher
 
match(arg) - Method in class io.mockk.NullCheckMatcher
 
match(arg) - Method in class io.mockk.OfTypeMatcher
 
match(arg) - Method in class io.mockk.VarargMatcher
 
Matcher<T> - Interface in io.mockk
Checks if argument is matching some criteria
matcher(matcher, cls) - Method in interface io.mockk.MockKGateway.CallRecorder
 
Matcher.DefaultImpls - Class in io.mockk
Checks if argument is matching some criteria
MatchersKt - Class in io.mockk
 
MethodDescription - Class in io.mockk
Provides information about method
MethodDescription(name, returnType, returnsUnit, returnsNothing, isSuspend, declaringClass, paramTypes, varArgsArg, privateCall) - Constructor for class io.mockk.MethodDescription
Provides information about method
mock() - Method in class io.mockk.MockKUnmockKScope
 
mockk(mockType, name, relaxed, moreInterfaces, relaxUnitFun) - Method in interface io.mockk.MockKGateway.MockFactory
 
MockKAdditionalAnswerScope<T,B> - Class in io.mockk
Scope to chain additional answers to reply. Part of DSL
MockKAdditionalAnswerScope(answerOpportunity, callRecorder, lambda) - Constructor for class io.mockk.MockKAdditionalAnswerScope
Scope to chain additional answers to reply. Part of DSL
MockKAnswerScope<T,B> - Class in io.mockk
Scope for answering functions. Part of DSL
MockKAnswerScope(call) - Constructor for class io.mockk.MockKAnswerScope
Scope for answering functions. Part of DSL
MockKAssertScope - Class in io.mockk
Part of DSL. Scope for assertions on arguments during verifications.
MockKAssertScope(actual) - Constructor for class io.mockk.MockKAssertScope
Part of DSL. Scope for assertions on arguments during verifications.
MockKCancellationRegistry - Class in io.mockk
 
MockKCancellationRegistry.RegistryPerType - Class in io.mockk
 
MockKCancellationRegistry.Type - Enum in io.mockk
 
MockKConstructorScope<T> - Class in io.mockk
Scope for constructor calls. Part of DSL.
MockKConstructorScope(type, recordPrivateCalls, localToThread) - Constructor for class io.mockk.MockKConstructorScope
Scope for constructor calls. Part of DSL.
MockKDsl - Class in io.mockk
DSL entry points.
MockKException - Exception in io.mockk
Exception thrown by library
MockKException(message, ex) - Constructor for exception io.mockk.MockKException
Exception thrown by library
MockKGateway - Interface in io.mockk
Mediates mocking implementation
MockKGateway.AnswerOpportunity<T> - Interface in io.mockk
 
MockKGateway.CallRecorder - Interface in io.mockk
Builds a list of calls
MockKGateway.CallVerifier - Interface in io.mockk
Verifier takes the list of calls and checks what invocations happened to the mocks
MockKGateway.Clearer - Interface in io.mockk
Clears mocks
MockKGateway.ClearOptions - Class in io.mockk
 
MockKGateway.Companion - Class in io.mockk
 
MockKGateway.ConstructorMockFactory - Interface in io.mockk
Controls constructor mocking
MockKGateway.Excluder - Interface in io.mockk
Verify calls
MockKGateway.ExclusionParameters - Class in io.mockk
Parameters of exclusion
MockKGateway.InstanceFactory - Interface in io.mockk
Factory of dummy objects
MockKGateway.InstanceFactoryRegistry - Interface in io.mockk
 
MockKGateway.MockFactory - Interface in io.mockk
Create new mocks or spies
MockKGateway.MockInitializer - Interface in io.mockk
 
MockKGateway.MockTypeChecker - Interface in io.mockk
 
MockKGateway.ObjectMockFactory - Interface in io.mockk
Binds object mocks
MockKGateway.StaticMockFactory - Interface in io.mockk
Binds static mocks
MockKGateway.Stubber - Interface in io.mockk
Stub calls
MockKGateway.VerificationAcknowledger - Interface in io.mockk
 
MockKGateway.VerificationParameters - Class in io.mockk
Parameters of verification
MockKGateway.VerificationResult - Class in io.mockk
Result of verification
MockKGateway.Verifier - Interface in io.mockk
Verify calls
MockKMatcherScope - Class in io.mockk
Basic stub/verification scope. Part of DSL.
MockKMatcherScope(lambda) - Constructor for class io.mockk.MockKMatcherScope
Basic stub/verification scope. Part of DSL.
MockKMatcherScope.DynamicCall - Class in io.mockk
 
MockKMatcherScope.DynamicCallLong - Class in io.mockk
 
MockKMatcherScope.DynamicSetProperty - Class in io.mockk
 
MockKMatcherScope.MockKVarargScope - Class in io.mockk
 
MockKObjectScope - Class in io.mockk
Scope for object mockks. Part of DSL
MockKObjectScope(objects, recordPrivateCalls) - Constructor for class io.mockk.MockKObjectScope
Scope for object mockks. Part of DSL
MockKSettings - Class in io.mockk
 
MockKStaticScope - Class in io.mockk
Scope for static mockks. Part of DSL
MockKStaticScope(staticTypes) - Constructor for class io.mockk.MockKStaticScope
Scope for static mockks. Part of DSL
MockKStubScope<T,B> - Class in io.mockk
Stub scope. Part of DSL
MockKStubScope(answerOpportunity, callRecorder, lambda) - Constructor for class io.mockk.MockKStubScope
Stub scope. Part of DSL
MockKUnmockKCompositeScope - Class in io.mockk
Composite of two scopes. Part of DSL
MockKUnmockKCompositeScope(first, second) - Constructor for class io.mockk.MockKUnmockKCompositeScope
Composite of two scopes. Part of DSL
MockKUnmockKScope - Class in io.mockk
Cancelable mocking scope
MockKUnmockKScope() - Constructor for class io.mockk.MockKUnmockKScope
Cancelable mocking scope
MockKVarargScope(position, nArgs) - Constructor for class io.mockk.MockKMatcherScope.MockKVarargScope
 
MockKVerificationScope - Class in io.mockk
Part of DSL. Additional operations for verification scope.
MockKVerificationScope(callRecorder, lambda) - Constructor for class io.mockk.MockKVerificationScope
Part of DSL. Additional operations for verification scope.
mockPlaceholder(cls) - Method in interface io.mockk.MockKGateway.ConstructorMockFactory
 

N

nCalls() - Method in interface io.mockk.MockKGateway.CallRecorder
 
NotMatcher<T> - Class in io.mockk
Boolean logic "NOT" matcher composed of one matcher
NotMatcher(value) - Constructor for class io.mockk.NotMatcher
Boolean logic "NOT" matcher composed of one matcher
nullablePropertyType(cls) - Method in class io.mockk.MockKStubScope
 
NullCheckMatcher<T> - Class in io.mockk
Checks if argument is null or non-null
NullCheckMatcher(inverse) - Constructor for class io.mockk.NullCheckMatcher
Checks if argument is null or non-null
NullCheckMatcher() - Constructor for class io.mockk.NullCheckMatcher
Checks if argument is null or non-null

O

objectMockk(obj, recordPrivateCalls) - Method in interface io.mockk.MockKGateway.ObjectMockFactory
 
OfTypeMatcher<T> - Class in io.mockk
Checks matcher data type
OfTypeMatcher(cls) - Constructor for class io.mockk.OfTypeMatcher
Checks matcher data type
OK(verifiedCalls) - Constructor for class io.mockk.VerificationResult.OK
 
Ordering - Enum in io.mockk
Verification ordering
Ordering() - Constructor for enum io.mockk.Ordering
Verification ordering

P

plus(scope) - Method in class io.mockk.MockKUnmockKScope
 
popCancellation() - Method in class io.mockk.MockKCancellationRegistry
 
propertyType(cls) - Method in class io.mockk.MockKStubScope
 
provideAnswer(answer) - Method in interface io.mockk.MockKGateway.AnswerOpportunity
 
pushCancellation(cancellation) - Method in class io.mockk.MockKCancellationRegistry
 

R

RecordedCall - Class in io.mockk
Matched call
RecordedCall(retValue, isRetValueMock, retType, matcher, selfChain, argChains) - Constructor for class io.mockk.RecordedCall
Matched call
registerFactory(factory) - Method in interface io.mockk.MockKGateway.InstanceFactoryRegistry
 
RegistryPerType() - Constructor for class io.mockk.MockKCancellationRegistry.RegistryPerType
 
reset() - Method in interface io.mockk.MockKGateway.CallRecorder
 
returns(returnValue) - Method in class io.mockk.MockKStubScope
 
returnsArgument(n) - Method in class io.mockk.MockKStubScope
 
returnsMany(values) - Method in class io.mockk.MockKStubScope
 
returnsMany(values) - Method in class io.mockk.MockKStubScope
 
round(n, total) - Method in interface io.mockk.MockKGateway.CallRecorder
 
runCoroutine(block) - Method in class io.mockk.InternalPlatformDsl
 
Runs - Class in io.mockk
Part of DSL. Object to represent phrase "just Runs"

S

setCaptured(p) - Method in class io.mockk.CapturingSlot
 
setCaptured(p) - Method in class io.mockk.CapturingSlot
 
setFieldValue(value) - Method in class io.mockk.MockKAnswerScope
 
setFieldValueAny(value) - Method in class io.mockk.MockKAnswerScope
 
setImplementation(p) - Method in class io.mockk.MockKGateway.Companion
 
setNull(p) - Method in class io.mockk.CapturingSlot
 
setProperty($receiver, name) - Method in class io.mockk.MockKMatcherScope
 
setRecordPrivateCalls(value) - Method in class io.mockk.MockKSettings
 
setRelaxed(value) - Method in class io.mockk.MockKSettings
 
setRelaxUnitFun(value) - Method in class io.mockk.MockKSettings
 
setSubMatchers(p) - Method in class io.mockk.AndOrMatcher
 
setSubMatchers(p) - Method in interface io.mockk.CompositeMatcher
 
setSubMatchers(p) - Method in class io.mockk.NotMatcher
 
spyk(mockType, objToCopy, name, moreInterfaces, recordPrivateCalls) - Method in interface io.mockk.MockKGateway.MockFactory
 
StackElement - Class in io.mockk
Element of stack trace.
StackElement(className, fileName, methodName, line, nativeMethod) - Constructor for class io.mockk.StackElement
Element of stack trace.
startExclusion(params) - Method in interface io.mockk.MockKGateway.CallRecorder
 
startStubbing() - Method in interface io.mockk.MockKGateway.CallRecorder
 
startVerification(params) - Method in interface io.mockk.MockKGateway.CallRecorder
 
staticMockk(cls) - Method in interface io.mockk.MockKGateway.StaticMockFactory
 
subRegistry(type) - Method in class io.mockk.MockKCancellationRegistry
 
substitute(map) - Method in class io.mockk.AndOrMatcher
 
substitute(map) - Method in class io.mockk.ArrayMatcher
 
substitute(map) - Method in class io.mockk.ComparingMatcher
 
substitute(map) - Method in class io.mockk.EqMatcher
 
substitute(map) - Method in class io.mockk.Invocation
 
substitute(map) - Method in class io.mockk.InvocationMatcher
 
substitute($this, map) - Static method in class io.mockk.Matcher.DefaultImpls
 
substitute(map) - Method in interface io.mockk.Matcher
 
substitute(map) - Method in class io.mockk.NotMatcher
 

T

temporaryMock(mockType) - Method in interface io.mockk.MockKGateway.MockFactory
 
threadLocal(initializer) - Method in class io.mockk.InternalPlatformDsl
 
ThrowingAnswer - Class in io.mockk
Throws exception instead of function reply
ThrowingAnswer(ex) - Constructor for class io.mockk.ThrowingAnswer
Throws exception instead of function reply
throws(ex) - Method in class io.mockk.MockKStubScope
 
toArray($receiver) - Method in class io.mockk.InternalPlatformDsl
 
toStr($receiver) - Method in class io.mockk.InternalPlatformDsl
 
toString() - Method in class io.mockk.AllAnyMatcher
 
toString() - Method in class io.mockk.AndOrMatcher
 
toString() - Method in class io.mockk.ArrayMatcher
 
toString() - Method in class io.mockk.AssertMatcher
Deprecated.
 
toString() - Method in class io.mockk.Call
 
toString() - Method in class io.mockk.CaptureMatcher
 
toString() - Method in class io.mockk.CaptureNullableMatcher
 
toString() - Method in class io.mockk.CapturingSlot
 
toString() - Method in class io.mockk.CapturingSlotMatcher
 
toString() - Method in class io.mockk.CoFunctionAnswer
 
toString() - Method in class io.mockk.ComparingMatcher
 
toString() - Method in class io.mockk.ConstantAnswer
 
toString() - Method in class io.mockk.ConstantMatcher
 
toString() - Method in class io.mockk.EqMatcher
 
toString() - Method in class io.mockk.FunctionAnswer
 
toString() - Method in class io.mockk.FunctionMatcher
 
toString() - Method in class io.mockk.Invocation
 
toString() - Method in class io.mockk.InvocationMatcher
 
toString() - Method in class io.mockk.InvokeMatcher
 
toString() - Method in class io.mockk.ManyAnswersAnswer
 
toString() - Method in class io.mockk.MethodDescription
 
toString() - Method in class io.mockk.MockKGateway.ClearOptions
 
toString() - Method in class io.mockk.MockKGateway.ExclusionParameters
 
toString() - Method in class io.mockk.MockKGateway.VerificationParameters
 
toString() - Method in class io.mockk.VerificationResult.Failure
 
toString() - Method in class io.mockk.VerificationResult.OK
 
toString() - Method in class io.mockk.NotMatcher
 
toString() - Method in class io.mockk.NullCheckMatcher
 
toString() - Method in class io.mockk.OfTypeMatcher
 
toString() - Method in class io.mockk.RecordedCall
 
toString() - Method in class io.mockk.StackElement
 
toString() - Method in class io.mockk.ThrowingAnswer
 
toString() - Method in class io.mockk.VarargMatcher
 
Type() - Constructor for enum io.mockk.MockKCancellationRegistry.Type
 
TypedMatcher - Interface in io.mockk
Checks if argument is of specific type
TypedMatcher.DefaultImpls - Class in io.mockk
Checks if argument is of specific type

U

unboxChar(value) - Method in class io.mockk.InternalPlatformDsl
 
unmock() - Method in class io.mockk.MockKUnmockKScope
 
use($receiver, block) - Static method in class io.mockk.APIKt
Wraps block of code for safe resource allocation and deallocation. Part of DSL
use($receiver, block) - Static method in class io.mockk.APIKt
 

V

value(value) - Method in class io.mockk.MockKMatcherScope.DynamicSetProperty
 
varargAllBoolean(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAllByte(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAllChar(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAllDouble(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAllFloat(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAllInt(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAllLong(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAllShort(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyBoolean(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyByte(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyChar(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyDouble(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyFloat(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyInt(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyLong(matcher) - Method in class io.mockk.MockKMatcherScope
 
varargAnyShort(matcher) - Method in class io.mockk.MockKMatcherScope
 
VarargMatcher<T> - Class in io.mockk
 
VarargMatcher(all, matcher, prefix, postfix) - Constructor for class io.mockk.VarargMatcher
 
VerificationParameters(ordering, min, max, inverse, timeout) - Constructor for class io.mockk.MockKGateway.VerificationParameters
Parameters of verification
VerificationResult.Failure - Class in io.mockk
 
VerificationResult.OK - Class in io.mockk
 
verifier(params) - Method in interface io.mockk.MockKGateway
 
verify(verificationSequence, params) - Method in interface io.mockk.MockKGateway.CallVerifier
 
verify(params, mockBlock, coMockBlock) - Method in interface io.mockk.MockKGateway.Verifier
 

W

wasNot($receiver, called) - Method in class io.mockk.MockKVerificationScope
 
wasNot($receiver, called) - Method in class io.mockk.MockKVerificationScope
 
wasNotCalled(list) - Method in interface io.mockk.MockKGateway.CallRecorder
 
withArguments(args) - Method in class io.mockk.MockKMatcherScope.DynamicCallLong
 
A B C D E F G H I J M N O P R S T U V W 
Skip navigation links