Column Fixture


A ColumnFixture maps columns in the test data to fields or methods of its subclasses. SimpleExample and CalculatorExample use column fixtures.

See also RowFixture, ActionFixture or the FieldGuideToFixtures.

A new column fixture is created for each table that uses one. That same column fixture will process each row in order top to bottom, and each column within a row left to right. The CalculatorExample relies on this, and the fact that x() is the first method column checked whenever key is changed. (A better way to handle this might be to look for a setter (setKey?) and call it to set the key field.)

See source.

See example column fixtures.


Last edited September 13, 2002
Return to WelcomeVisitors