SalesforceSalesforce
PDI · Question #230
PDI Question #230: Real Exam Question with Answer & Explanation
Sign in or unlock PDI to reveal the answer and full explanation for question #230. The question stem and answer options stay visible for context.
Submitted by helene.fr· Apr 18, 2026Testing, Debugging, and Deployment
Question
A developer is asked to write helper methods that create test data for unit tests. What should be changed in the Testvtils class so that its methods are only usable by unit test methods?
Options
- AChange public to private on line 01.
- BAdd @IsTest above line 03,
- CAdd @IsTest above line 01.
- DRemove static from line 03.
Unlock PDI to see the answer
You've previewed enough free PDI questions. Unlock PDI 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.
Topics
#Apex Testing#@IsTest#Test Utility Classes#Test Methods