Mockito Verification Fails with any(type::class.java) or any() in Kotlin Unit Test
I’m currently writing a unit test in Kotlin using Mockito for a function that saves data to SharedPreferences. I’m trying to verify that a method was called with specific parameters, but I’m encountering an issue when using any(Context::class.java)
and any()
.