Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 393 discussion

Actual exam question from Salesforce's CRT-450
Question #: 393
Topic #: 1
[All CRT-450 Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
SS1121
4 months, 3 weeks ago
Selected Answer: B
Correct Answer is B. HTTPCalloutMock is an interface. https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_httpcalloutmock.htm
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...