The Stack Overflow podcast is back! Listen to an interview with our new CEO.

you need to create the Mockresponse class and then you need to create the fake response. in Test class you should call this mockresponse class and not the actual endpoint. PFB the sample code. @isTest global class MockHttpResponseGenerator implements HttpCalloutMock { // Implement this interface method global HTTPResponse respond(HTTPRequest req)...

Only top voted, non community-wiki answers of a minimum length are eligible