GridFixture checks that a grid of values in the table matches the values in a 2D array.
The method string() in class GridFixtureUnderTest is as follows:
The grid can contain graphics:
The image file names in the table are compared against the File names supplied by the fixture.
The method images() in class GridFixtureUnderTest is as follows:
fitlibrary.specify.GridFixtureUnderTest |
strings | |
a | b |
c | d |
The method string() in class GridFixtureUnderTest is as follows:
...
public Fixture strings() {
return new GridFixture(new String[][] {
{"a", "b"}, {"c", "d"} });
}
The grid can contain graphics:
images | ||||
The image file names in the table are compared against the File names supplied by the fixture.
The method images() in class GridFixtureUnderTest is as follows:
...
public Fixture images() {
return new GridFixture(new ImageNameGraphic[][] {
{ new ImageNameGraphic("gameImages/wall.jpg"),
new ImageNameGraphic("gameImages/space.jpg"),
new ImageNameGraphic("gameImages/box.jpg"),
new ImageNameGraphic("gameImages/space.jpg"),
new ImageNameGraphic("gameImages/wall.jpg") }});
}
- Copyright (c) 2004, 2005 Rick Mugridge, Rimu Research.
- Released under the terms of the GNU General Public License version 2 or later.
Add Child Page to GridFixture