June 2005
Intermediate to advanced
384 pages
8h 4m
English
The tests in Chapter 15 were developed to advance the clock and set the time in order to test some parts of the system. Emily and Neo handled the changing date in the application by using the system clock indirectly. That meant that they could substitute a different clock that allows the date and time to be changed by the tests.
Emily and Neo worked together to implement the fixtures for the tests in Chapter 15.
Those tests assume that the clock and time can be changed. “However,” stressed Neo, “it would be a big mistake to try and fiddle with the real system clock.”
“Yes, I agree,” replied Emily, “so let’s use a ...
Read now
Unlock full access