@Override public GridLayout testRead(String design, GridLayout expected) { expected.setCursorX(0); expected.setCursorY(expected.getRows()); GridLayout result = super.testRead(design, expected); for (int row = 0; row < expected.getRows(); ++row) { Assert.assertTrue( Math.abs(expected.getRowExpandRatio(row) - result.getRowExpandRatio(row)) < 0.00001); } for (int col = 0; col < expected.getColumns(); ++col) { Assert.assertTrue( Math.abs(expected.getColumnExpandRatio(col) - result.getColumnExpandRatio(col)) < 0.00001); } return result; }