RowFixture tests dynamic lists of objects. It will compare the expected list (FitNesse table) with the actual result (from fixture code) and report any additional or missing items.
similar to:
The fixture class should extend fit.RowFixture and override the following two methods:
!include -seamless SetUpFixture
!|RowFixtureTest|
|name|post code|
|John Smith|SW4 66Z|
|Michael Jordan|NE1 8AT|
package info.fitnesse.fixturegallery;
import info.fitnesse.fixturegallery.domain.Player;
import fit.RowFixture;
public class RowFixtureTest extends RowFixture{
public Class getTargetClass() {
return Player.class;
}
public Object[] query() throws Exception {
return Player.players.toArray();
}
}