Hey everyone not sure how `capture(slot)` should w...
# mockk
j
Hey everyone not sure how
capture(slot)
should work here.
Copy code
val obj = ExtendedObjBecauseImTestingOnAndroidUnderP(someStuff, someOtherStuff)
val objSpy = spyk(obj)
val slot = slot<ParamType>()
every {
  obj.methodWhichSouldBePrivate(capture(slot), otherStuff))
} just Runs
Why am I getting this issue
left matchers: [slotCapture<ParamType>()]
?
o
it is hard to tell in this case, as many questions appear. methodWhichSouldBePrivate is it extension method? or why you say it is private, but you can call it? write minimal gist to reproduce and then it will be clear what is your problem
j
First thanks 🙂 I’m writing the gist but for the quick answer
methodWhichShouldBePrivate
is not an extension function