https://kotlinlang.org logo
#kotest
Title
# kotest
k

Kev

03/25/2024, 10:37 AM
Hello, is there a solution for using
whenever(it.foo(any()).thenReturn(null))
where foo’s parameter is a value class? I keep getting
unbox-impl()
error’s when trying to do this. If I use an explicit value then it works as expected.
c

christophsturm

03/25/2024, 12:13 PM
ask in #mockk
k

Kev

03/25/2024, 12:17 PM
Thanks