O'Reilly logo

Fit for Developing Software: Framework for Integrated Tests by Ward Cunningham, Rick Mugridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required