How should a developer write unit tests for a private method in an Apex class?
How should a developer write unit tests for a private method in an Apex class?
A . Use the SeeAllData annotation.
B. Add a test method in the Apex class.
C. Use the TestVisible annotation.
D. Mark the Apex class as global.
Answer: C
Latest PDI Practice Questions with 191 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments