Hello, exist a way with verify, check not all obje...
# mockk
s
Hello, exist a way with verify, check not all object parameters and only for example 3 parameters of 5? example
verify(exactly = 1) { mView.loadUser(user is {name = "sergio"}) }
and not
verify(exactly = 1) { mView.loadUser(user)}
o
Not exactly sure
What youve meaby
Meant
s
my verify crash because the object is not the same
o
It is poasible to check objects via lambda
s
and i would like not to use this
mView.loadUser(any())
o
Belive it is called
matcher
So
Should be possible
mView.loadUser(matcher { it.name == "something" }
)
s
i am going check
thanks
o
I may forgot exact name
But know that it definetelly exists
Welcome
s
it works perfect with
match
thanks