Implementing Mocking for Apex Tests

Trying to mock a actual¬†database query can be hard. Using the fflib_Mocks jar you can generator Selector Mocks: More info here: 1. Create interface class that extends fflib_ISObjectSelector to mock the Selector¬† 2. Create file in root of your project 3. Run java -jar apex-mocks-generator-4.0.0.jar “{path}/src/classes” “{path}/” “fflib_Mocks” “{path}/src/classes” “30.0” to generate mocking […]

Rate this:

Read More