May 2009
Intermediate to advanced
320 pages
8h 28m
English
This chapter covers
In the previous chapter, we looked at writing mocks and stubs manually and saw the challenges involved. In this chapter, we’ll look at some elegant solutions for these problems in the form of a mock object framework—a reusable library that can create and configure stub and mock objects at runtime. These objects are usually referred to as dynamic stubs and dynamic mocks.
We’ll start this chapter off with an overview of mock ...
Read now
Unlock full access