// has 2 rows
List<Row> rows = grid.getRows();
assertThat(rows).hasSize(2);
// row 0
{
Row row = rows.get(0);
{
Rectangle bounds = row.getBounds();
assertEquals(new Rectangle(0, 2, 450, 147), bounds);
}
// has 2 cells
List<Cell> cells = row.getCells();
assertThat(cells).hasSize(2);
{
Cell cell = cells.get(0);
Rectangle bounds = cell.getBounds();
assertEquals(new Rectangle(2, 0, 147, 147), bounds);
}
{
Cell cell = cells.get(1);
Rectangle bounds = cell.getBounds();
assertEquals(new Rectangle(151, 0, 147, 147), bounds);
}
}
// row 1
{
Row row = rows.get(1);
{
Rectangle bounds = row.getBounds();
assertEquals(new Rectangle(0, 151, 450, 147), bounds);
}
List<Cell> cells = row.getCells();
assertThat(cells).hasSize(3);
{
Cell cell = cells.get(0);
Rectangle bounds = cell.getBounds();
assertEquals(new Rectangle(2, 0, 147, 147), bounds);