Salesforce
PDII · Question #157
How would you test a web service?
The correct answer is D. Create a class that implements the WebServiceMock interface. See the full explanation below for the reasoning.
Question
How would you test a web service?
Options
- AUse the @future annotation on the method
- BCall the WebService interface
- CWeb Services do not need to be tested
- DCreate a class that implements the WebServiceMock interface
How the community answered
(28 responses)- A7% (2)
- B14% (4)
- C4% (1)
- D75% (21)
Community Discussion
No community discussion yet for this question.