Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Salesforce Certified Platform Developer II (PDII) · Salesforce
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
You need to set a mock.
The Test.setMock method is used to set up the mock response for the callout. This way, the test method doesn't actually make a real web service callout and will not generate an error.
B is the correct answer.