Read the screenplay: FANNIEGATE — $7 trillion. 17 years. The biggest fraud in American capital markets.
📚 LibraryOpen Source

fflib Apex Mocks

By Andrew Fawcett / FinancialForce

What It Does

Mocking framework for Apex unit tests. Mock selectors, services, and domain classes to write fast, isolated tests without hitting the database.

Glen's Take

Pairs with fflib-apex-common to enable real unit testing in Apex. Instead of inserting 50 records to test a trigger, mock the selector and test your logic in isolation. Tests run in milliseconds instead of seconds. The syntax takes getting used to, but it's worth it.

Links

Tags

testingmockingunit testsTDDisolation

Need help with your Salesforce tooling stack?

I'll help you pick and configure the right tools for your team.

View Consulting →

Enjoyed this? Get more like it.

Glen's Musings — AI, investing, and building things. Occasional. Free.

More Library Tools