public void testDisplaySolution()
{
SudokuView view = new SudokuView();
JFrame frame = new JFrame();
frame.add(view, BorderLayout.CENTER);
FrameFixture frameFixture = new FrameFixture(robot, frame);
frame.setSize(400, 400);
frame.validate();
frameFixture.show();
Sudoku sudoku = SudokuTestUtils.createSudoku(new int[][]
{
{1, 2, 8, 5, 4, 3, 9, 6, 7},
{7, 6, 4, 9, 2, 8, 5, 1, 3},
{3, 9, 5, 7, 6, 1, 2, 4, 8},
{6, 1, 9, 4, 8, 5, 7, 3, 2},
{5, 8, 3, 6, 7, 2, 1, 9, 4},
{4, 7, 2, 3, 1, 9, 8, 5, 6},
{8, 5, 1, 2, 3, 6, 4, 7, 9},
{9, 4, 6, 8, 5, 7, 3, 2, 1},
{2, 3, 7, 1, 9, 4, 6, 8, 5}
});
view.setSolution(sudoku);
JTableCellFixture cell1 = frameFixture.table().cell(TableCell.row(0).column(0));
cell1.requireNotEditable();
cell1.requireValue("1");
}