Closed AllanOricil closed 3 years ago
@AllanOricil regarding some of these Apex Mocks questions, there is an "Apex Mocks Reading List" that I have curated over the years and just posted to the project wiki. I believe it will be helpful.
Specifically, the articles by Vincenzo Denti might be helpful
@ImJohnMDaniel thanks john. I figured it out reading the code
If anyone needs help with it,
just pass a number as a second argument to verify
, like
((DSP_IDocumentSigningRequests) mocks.verify(documentSigningRequestsMock, 2)).getRecordsMap();
I have this exception on methods that I call twice
fflib_ApexMocks.ApexMocksException: Expected : 1, Actual: 2
but I don't know how to set the number of times I expect the method to be called