March 2024
Intermediate to advanced
288 pages
7h 49m
English
This chapter covers
In the previous chapters, we looked at writing mocks and stubs manually and saw the challenges involved, especially when the interface we’d like to fake requires us to create long, error prone, repetitive code. We kept having to declare custom variables, create custom functions, or inherit from classes that use those variables and basically make things a bit more complicated than they need to be (most of the time).
In this chapter, we’ll look at some elegant solutions to these problems in the form of an isolation framework—a reusable ...
Read now
Unlock full access