Closed AllanOricil closed 2 years ago
@wimvelzeboer @ImJohnMDaniel @afawcett could you help me to understand the problem?
I fixed it. I had to mock getRecords() in both domain mocks.
...
mocks.when(documentSigningRequestsMock.getRecords()).thenReturn(documentSigningRequests);
...
mocks.when(contentDocumentLinksMock.getRecords()).thenReturn(contentDocumentLinks);
For some weird reason Im getting this null pointer exception in this line. Im using an old version of fflib but I can't tell you which one it is. I just know it is a release before the new Domain/Trigger handler strategy.
https://github.com/apex-enterprise-patterns/fflib-apex-common/blob/ecaeb12b5f0c39426f283d7cb08d6c71e87a98f7/sfdx-source/apex-common/main/classes/fflib_Application.cls#L320
This is where the exception started in my code
My Test
The service Method Im testing