nerdexam
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)
  • A
    7% (2)
  • B
    14% (4)
  • C
    4% (1)
  • D
    75% (21)

Community Discussion

No community discussion yet for this question.

Full PDII Practice