February 2018
Intermediate to advanced
406 pages
9h 55m
English
The next type of test double is a Mock object, which records how the system behaves with it and then presents the recording for verification. For example, a Mock database component could check whether it was not being called for a product that was supposed to be answered from a cache layer instead of a database.
Here is a basic diagram representation of the ecosystem around Mocks:

Read now
Unlock full access