How to implement HttpCalloutMock Class?

Testing HTTP Callouts by Implementing the HttpCalloutMock Interface
Provide an implementation for the HttpCalloutMock interface to specify the response sent in the respond method, which the Apex runtime calls to send a response for a callout.

In your test class, call “MyClass” to mock your http request

0

About the author

Janaki(http://mjanaki.com) -

A Software developer with 9+ years of experience in multiple technology projects across web, mobile, and cloud applications with expertise in PHP, C#, MySQL, Web services and open source platforms.

Similar Posts

Leave a reply

required*

Eye Test: * Time limit is exhausted. Please reload CAPTCHA.