Section 34.3. Time-Related Object Interactions


34.3. Time-Related Object Interactions

Figure 34.2 shows the interaction of the fixtures with the system under test and the MockClock. When the StartApplication object is created, it creates an object of class RentEz, passing to it a MockClock. The system under test subsequently uses that clock for the time, which is updated by time is now actions.

Figure 34.2. Using a Mock Clock




    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