How to Create Mocks
We only need one line to create a mock.
Func mock = (Func)T.mock(Func.class);
We only need one line to create a mock.
Func mock = (Func)T.mock(Func.class);
We use Salesforce Apex Stub API to create mock objects. All limitations for Stub API also apply here.
Contribute on Github! Edit this section.