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

Michael de Kaste

09/28/2022, 12:25 PM
Is there a simple way to let all
vars
work automatically on a mockk? Having to specify
Copy code
every{ someClass.someValue = any() } answers { every { someClass.someValue } returns firstArg() }
for every field is a hassle
k

Klitos Kyriacou

09/28/2022, 3:14 PM
Maybe use a
spyk
instead?
6 Views