https://kotlinlang.org logo
#mockk
Title
# mockk
f

Funyinoluwa Kashimawo

11/21/2023, 10:04 PM
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
20 Views