Mock KMatcher Scope
Basic stub/verification scope. Part of DSL.
Inside of the scope you can interact with mocks. You can chain calls to the mock, put argument matchers instead of arguments, capture arguments, combine matchers in and/or/not expressions.
It's not required to specify all arguments as matchers, if the argument value is constant it's automatically replaced with eq() matcher. . Handling arguments that have defaults fetched from function (alike System.currentTimeMillis()) can be an issue, because it's not a constant. Such arguments can always be replaced with some matcher.
Provided information is gathered and associated with mock
Constructors
Types
Functions
Captures coroutine. Captured coroutine R>().coInvoke(...) can be used in answer scope.
Captures lambda function. Captured lambda<(A1, A2, ...) -> R>().invoke(...) can be used in answer scope.