ArgumentMatchers in MockK

2020-03-27 android kotlin mockk

I'm converting from Java to Kotlin, and from Mockito to MockK.

I'm stuck at converting Argument Matchers from Mockito to MockK.

Mockito can do any() to match anything, including nulls and varargs. (imports ArgumentMatchers.any)

For example:


Does MockK have anything for that? In this specific situation, it's not any primitive type. I'm trying to match a class Object.

Thank you!