A developer wrote Apex code that calls out to an external system using REST API. How should a developer write the test to prove the code is working as intended?
A. Write a class that extends WebServiceMock.
B. Write a class that implements HTTPCalloutMock.
C. Write a class that extends HTTPCalloutMock.
D. Write a class that implements WebServiceMock.
Suggest answer: C
Reference:
No comments:
Please share to make the community better.