Skip to main content
2 votes
Accepted

Database.QueryLocator mocking during unit test

This seems like an X-Y problem to me. There should be no need to mock things here. Assuming that you're simply trying to write a unit test for a batch class, you should generally be calling the start()...
Derek F's user avatar
  • 63.2k

Only top scored, non community-wiki answers of a minimum length are eligible