Test Wiki - Row Fixture
The row fixture is the most difficult to understand of all the test fixture types.
WardsWiki defines the Java row fixture
here.
A
RowFixture compares rows in the test data to objects in the system under test. Methods are invoked on the objects and returned values compared to those in the table.
The fixture processes all the rows of one table following these five steps:
- bind the columns to variables and methods by reflection.
- query to get the result rows which will be checked.
- match the expected and result rows and check the matches.
- build html for missing rows.
- mark mark missing and surplus rows as such.