Stop trying to Mock me, and Mock me!

“Test Doubles”, or Mock Objects, Test Stubs and Spies are powerful tools in making Unit Tests complete, flexible and simple, but they have their pitfalls. Using Amoss, an Apex specific Mock Object Framework, I’ll take your through what each of the flavours are, how they can be used, how to get the most out of them, and when you should stay away. The result? Tests with less of a reliance on data creation, making them easier to write, more readable, and quicker to run.


Loading

Session Assets

There are no assets uploaded yet for this session

Ran on: 19th March 2021 Rob Baillie Rob Baillie