Closed saiday closed 7 years ago
HCArgumentCaptor is good for capturing blocks. Try adding (id)
casting to make the type anonymous, like
[MKTVerify(self.mockConnectionService) fetchStationSong:anything()
success:(id)successCaptor
failure:(id)failCaptor];
@jonreid Got it, thank you for your help
I have used
MKTArgumentCaptor
as my argument captor, on updatingOCMockito
seems like now there's newHCArgumentCaptor
instead of oldMKTArgumentCaptor
.In some use cases, I used to capture completion block and execute it to solve async testing issue.
when I trying to migrate to new
HCArgumentCaptor
:I got this error:
My question: is
HCArgumentCaptor
not supporting block capture? If so, what should I do it.Thank you for your awesome project, and great articles.