nerdexam
Salesforce

PDII · Question #162

When testing batch classes, what must a developer do? (Choose two.)

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

How the community answered

(21 responses)
  • A
    19% (4)
  • B
    71% (15)
  • D
    10% (2)

Community Discussion

No community discussion yet for this question.

Full PDII Practice