Salesforce
CRT-450 · Question #159
CRT-450 Question #159: Real Exam Question with Answer & Explanation
The correct answer is C. Use the TestVisible annotation.. See the full explanation below for the reasoning.
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.
Community Discussion
No community discussion yet for this question.