Apex HTTP Callout Mocking

HttpCalloutMock for Apex tests: HttpCalloutMock interface, StaticResourceCalloutMock, MultiStaticResourceCalloutMock, Test.setMock, multi-call mocks for pagination, error-path mocks. NOT for writing the callout itself — use apex/callouts-and-http-integrations. NOT for stubbing an Apex collaborator — use apex/apex-mocking-and-stubs.

PranavNagrecha 37dff4f 7 files · 33.6 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/apex-http-callout-mocking commit 37dff4fea0

Frequently asked questions

npx skillmds add pranavnagrecha/apex-http-callout-mocking