June 2005
Intermediate to advanced
384 pages
8h 4m
English
A fixture of type ColumnFixture defines how the specific given and calculated columns of a ColumnFixture table are mapped to the system under test. This information is used to run each of the tests in the table in turn. This chapter shows the fixtures for the Fit tables introduced in Chapter 3.
CalculateDiscountConsider the discount tests from Section 3.1 on p. 13, shown again in Figure 21.1. The first row of the table names CalculateDiscount, the fixture that will be used to interpret the tests in the tables. This fixture is the name of a Java class—or equivalent in other languages. The second, header, row of the table labels the given column amount and the calculated column discount( ).
Figure ...
Read now
Unlock full access