Apex Mocking And Stubs

Choosing and implementing Apex test doubles — `Test.setMock` and `StubProvider` — and designing the code seams they need. Triggers: 'StubProvider', 'Test.createStub', 'HttpCalloutMock', 'StaticResourceCalloutMock', 'mocking infrastructure'. NOT for multi-response or per-endpoint HTTP mocks — use apex/apex-http-callout-mocking. NOT for general test design — use apex/test-class-standards.

PranavNagrecha 84d905c 7 files · 22.8 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/apex-mocking-and-stubs commit 84d905c06c

Frequently asked questions

npx skillmds add pranavnagrecha/apex-mocking-and-stubs