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

Pitel

03/22/2022, 10:43 AM
I have an object, how can I spy and verify its private calls?
m

Matteo Mirk

03/22/2022, 3:56 PM
I don’t think you can. Since they’re private you cannot access them to configure stubbings or verifications.
You can surely spy an object, but you’ll have to verify the internals indirectly through its public API
9 Views