Hello, How do I make use of mockk to mock or spy a...
# mockk
f
Hello, How do I make use of mockk to mock or spy an object with a nullable Duration field. I am getting
Copy code
Suppressed: java.lang.ClassCastException: class java.lang.Long cannot be cast to class kotlin.time.Duration (java.lang.Long is in module java.base of loader 'bootstrap'; kotlin.time.Duration is in unnamed module of loader 'app')
I see that my issue is similar to this but there is no solution there https://github.com/mockk/mockk/issues/869