Salesforce
PDII · Question #162
PDII Question #162: Real Exam Question with Answer & Explanation
The correct answer is B. Encapsulate code in Test.startTest() and Test.stopTest() C. Call the class' "execute" method. See the full explanation below for the reasoning.
Question
When testing batch classes, what must a developer do? (Choose two.)
Options
- AUse seeAllData=true
- BEncapsulate code in Test.startTest() and Test.stopTest()
- CCall the class' "execute" method
- DLimit the amount of records you test to < 200
Community Discussion
No community discussion yet for this question.