'What is the matcher of any object of particular class in mockitokotlin2?
there is any() in mockitokotlin2 but it's any object. I need a matcher for any object of MyClass, like org.mockito.Matchers.any(MyClass::class.java)
is it possible?
Solution 1:[1]
In mockito-kotlin you can specify your type as a type argument of any:
org.mockito.kotlin.any<MyClass>()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Karsten Gabriel |
