huehnerlady
01/13/2021, 4:59 PM*_ 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()?christophsturm
01/13/2021, 5:07 PMchristophsturm
01/13/2021, 5:08 PMMattia Tommasone
01/13/2021, 8:11 PMfoo method has two implementations, one taking two parameters and one taking three
which one would you be stubbing if you had anyParameters()?huehnerlady
01/14/2021, 7:08 AM