ApexTools Guide
ApexTools contains small tools that raise testability and readability when you run Apex Stem. As new tools are needed, they will be added over time.
Tools Included
Click each card to jump to its detail page.
TriggerHandler
A base class that shapes the entry point processing from Triggers. Extend TriggerHandler to inherit the seven hooks and override only the ones you need. A helper that narrows afterUpdate to records where specific fields changed is also bundled.
TriggerHandlerTrigger
IHttpRequestHandler
A DI-aware HTTP request wrapper. The trio of IHttpRequestHandler / HttpRequestHandler / MockHttpRequestHandler lets you integrate external API calls with the Layered Constructor Pattern. Resolves the pain points of the official HttpCalloutMock with a declarative Map / List based API.
HttpRequestDITesting
Read Next
- Handler-Usecase Architecture: the core architecture of Apex Stem where
TriggerHandlershines - Layered Constructor Pattern: the basic pattern that supports the DI design of
IHttpRequestHandler - Apex Stem Introduction Guide: four steps with working code
- ApexTools on GitHub: source code and the latest info