Chapter 21. Column Fixtures
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.
21.1 Fixture CalculateDiscount
Consider 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 ...
Get Fit for Developing Software: Framework for Integrated Tests now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.