Salesforce
CRT-450 · Question #159
How should a developer write unit tests for a private method in an Apex class?
Sign in or unlock CRT-450 to reveal the answer and full explanation for question #159. The question stem and answer options stay visible for context.
Question
How should a developer write unit tests for a private method in an Apex class?
Options
- AUse the SeeAllData annotation.
- BAdd a test method in the Apex class.
- CUse the TestVisible annotation.
- DMark the Apex class as global.
Unlock CRT-450 to see the answer
You've previewed enough free CRT-450 questions. Unlock CRT-450 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.