Hi,
Does anyone know how I can use mockk to say “this methos with any parameters”?
In spock you have the operator
*_
for that (see
here)
Example
fun foo(p1: String, p2: Boolean, p3: Int): Boolean
I want to write something like this in a test:
every {foo(anyParameters())} returns true
Currently the only way I know is:
every {foo(any(), any(), any())} returns true
Is there a way to be less verbose and just say
anything
?
I tried
allAny()
as that sounded like what I wanted, but that didn’t help me either, for me it feels like this is the same as
any()
?