https://kotlinlang.org logo
#mockk
Title
# mockk
a

André Thiele

05/09/2021, 3:37 PM
Is it possible to only verify a function call but ignore the specific instance that a mocked function is being called with?
I mean I just moved the instance into the function parameters but still not the ideal solution. Any recommendations?
e

Emil Kantis

05/09/2021, 7:39 PM
verify { functionToTest(any()) }
or am I missing something? 🙂 https://mockk.io/#matchers
👍 2
5 Views