28.10. Testing Parts of a ListWe 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. |