Home » Salesforce » Certified Platform Developer II » What is a best practice when unit testing a controller?
What is a best practice when unit testing a controller? (Choose two.)
A. Simulate user interaction by leveraging Test.setMock()
B. Verify correct references by using getURL()
C. Access test data by using seeAllData=true
D. Set query parameters by using getParameters().put
Correct Answer: BD
Explanation/Reference:
How To Pass Certified Platform Developer II Exam?
Certified Platform Developer II PDF dumps.
High quality Certified Platform Developer II pdf and software. VALID exam to help you pass.
|
|
Download Printable PDF. VALID exam to help you PASS.
|
|
Context is user which interact with a component/page
A ->. is more targetted toward the web service so that is not needed in this case
why not A +D ?