7172737475767778798081828384
frameFixture.show(); view.setPuzzle(TEST_PUZZLE); // Check a non-empty cell. JTableCellFixture cell1 = frameFixture.table().cell(TableCell.row(0).column(0)); cell1.requireEditable(); cell1.requireValue("4"); // And an empty cell. JTableCellFixture cell2 = frameFixture.table().cell(TableCell.row(0).column(1)); cell2.requireEditable(); cell2.requireValue(""); }
107108109110111112113114115
{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"); }
218219220221222223224225226227228229230231232233234235236237238
JRadioButtonFixture buttonA = new Query().accessibleNameMatches("Alpha Value: ").radioButtonIn(fixture); buttonA.check(); manifestation.updateFromFeed(data); JTableCellFixture cell = tableFixture.cell(row(0).column(2)); JTableCellFixture cell2 = tableFixture.cell(row(1).column(2)); cell.requireValue("1"); cell2.requireValue("1"); buttonA.uncheck(); JRadioButtonFixture buttonI = new Query().accessibleNameMatches("Test Value: ").radioButtonIn(fixture); buttonI.check(); JTextComponentFixture textFixture = new Query().textBoxIn(fixture); textFixture.enterText("2"); manifestation.updateFromFeed(data); cell.requireValue("2"); cell2.requireValue("2"); }