Did you ever face the challenge of requiring to stub one method of the same class-type with different implementations? In this article I’d like to highlight the (simple) possibility within the fflib framework.
Extensive test/mocking example guide in fflib
Are you (semi-)familiar with fflib but sometimes still feeling challenged to write constructive test methods, without copy-pasting everything? This post is more like an extensive guide, showing example code for reference, but also deep-diving into the why and how of certain lines of code.
Enterprise Design Pattern (fflib)
What is the Enterprise Design Pattern; why would you apply it; where and how to start? Implementing this pattern will help you structure your code base, promote reuse of methods and allow to reduce unit test runtime thanks to Mocking.