Chapter 34. Mocks and Clocks


Programmers

The tables that use this fixture code are given in Chapter 15.


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.



    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net