Is there a way I can Mockito.verify method called ...
# android
u
Is there a way I can Mockito.verify method called on a mock, with providing mock as that method's argument in Kotlin?
Copy code
verify(mockHostService).startForegroundState(notifId = anyInt(), notification = mockNotification)
passing in any() causes NPE because obvious reasons, im reading about mockito-kotlin, says they support any() but it will call constructor on the object, which obviously I cannot since its Android. I just want to verify method was called, dont care about the arguments