Section 28.10. Testing Parts of a List


28.10. Testing Parts of a List

We now return to the example from Section 10.7 on p. 79, as shown again in Figure 28.6. The action in the fifth table of Figure 28.6 leads to a call of the method subset() in class Discounts as shown in Listing 28.8. This passes the actual collection to a fixture of class SubsetFixture, which checks the rows in the rest of the table against the actual elements.

SubsetFixture is the same as SetFixture but ignores the surplus rows: in the actual collection, those elements are not included in rows of the table.



    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