| Interface | Description |
|---|---|
| Answer<T> |
Provides return value for mocked function
|
| CapturingMatcher |
Captures the argument
|
| CompositeMatcher<T> |
Matcher composed from several other matchers.
|
| CoroutineCall<T> | |
| Deregisterable |
Allows to deregister something was registered before
|
| EquivalentMatcher |
Allows to substitute matcher to find correct chained call
|
| InternalCounter | |
| InternalRef<T> | |
| ManyAnswerable<T> |
Required to signalize many answers available
|
| Matcher<T> |
Checks if argument is matching some criteria
|
| MockKGateway |
Mediates mocking implementation
|
| TypedMatcher |
Checks if argument is of specific type
|
| Class | Description |
|---|---|
| APIKt | |
| AllAnyMatcher<T> |
Matcher to replace all unspecified argument matchers to any()
Handled by logic in a special way
|
| AndOrMatcher<T> |
Boolean logic "AND" and "OR" matcher composed of two other matchers
|
| ArrayMatcher<T> |
Matcher that can match arrays via provided matchers for each element.
|
| AssertMatcher<T> | Deprecated |
| BackingFieldValue |
Manipulable field value
|
| Call |
Call happened for stubbed mock
|
| Called |
Part of DSL. Object to represent phrase "wasNot Called"
|
| CaptureMatcher<T> |
Matcher capturing all results to the list.
|
| CaptureNullableMatcher<T> |
Matcher capturing all results to the list. Allows nulls
|
| CapturingSlot<T> |
Slot allows to capture one value.
|
| CapturingSlotMatcher<T> |
Matcher capturing one last value to the CapturingSlot
|
| CoFunctionAnswer<T> |
Delegates reply to the lambda suspendable function
|
| ComparingMatcher<T extends Comparable<? super T>> |
Matcher comparing values
|
| ConstantAnswer<T> |
Returns one constant reply
|
| ConstantMatcher<T> |
Matcher that always returns one same value.
|
| EqMatcher<T> |
Matcher that checks equality. By reference and by value (equals method)
|
| FunctionAnswer<T> |
Delegates reply to the lambda function
|
| FunctionMatcher<T> |
Delegates matching to lambda function
|
| InternalPlatformDsl | |
| Invocation |
Mock invocation
|
| InvocationMatcher |
Checks if invocation is matching via number of matchers
|
| InvokeMatcher<T> |
Invokes lambda
|
| JvmCoroutineCall<T> | |
| ManyAnswersAnswer<T> |
Returns many different replies, each time moving the next list element.
Stops at the end.
|
| MatchersKt | |
| MethodDescription |
Provides information about method
|
| MockKAdditionalAnswerScope<T,B> |
Scope to chain additional answers to reply. Part of DSL
|
| MockKAnswerScope<T,B> |
Scope for answering functions. Part of DSL
|
| MockKAssertScope |
Part of DSL. Scope for assertions on arguments during verifications.
|
| MockKCancellationRegistry | |
| MockKConstructorScope<T> |
Scope for constructor calls. Part of DSL.
|
| MockKDsl |
DSL entry points.
|
| MockKMatcherScope |
Basic stub/verification scope. Part of DSL.
|
| MockKObjectScope |
Scope for object mockks. Part of DSL
|
| MockKSettings | |
| MockKStaticScope |
Scope for static mockks. Part of DSL
|
| MockKStubScope<T,B> |
Stub scope. Part of DSL
|
| MockKUnmockKCompositeScope |
Composite of two scopes. Part of DSL
|
| MockKUnmockKScope |
Cancelable mocking scope
|
| MockKVerificationScope |
Part of DSL. Additional operations for verification scope.
|
| NotMatcher<T> |
Boolean logic "NOT" matcher composed of one matcher
|
| NullCheckMatcher<T> |
Checks if argument is null or non-null
|
| OfTypeMatcher<T> |
Checks matcher data type
|
| RecordedCall |
Matched call
|
| Runs |
Part of DSL. Object to represent phrase "just Runs"
|
| StackElement |
Element of stack trace.
|
| ThrowingAnswer |
Throws exception instead of function reply
|
| VarargMatcher<T> |
| Enum | Description |
|---|---|
| Ordering |
Verification ordering
|
| Exception | Description |
|---|---|
| MockKException |
Exception thrown by library
|