Join Slack
I have an object, how can I spy and verify its private calls?
# 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.
Matteo Mirk
03/22/2022, 4:03 PM
You can surely spy an object, but you’ll have to verify the internals indirectly through its public API
8
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by