@Test public void modelCellChangedEvenTriggersRepaint() { // -XX // --X // --- Iterable<Grid.Location> changedCells = asList( Grid.Location.of(Grid.Row.First, Grid.Column.Third), Grid.Location.of(Grid.Row.First, Grid.Column.Second), Grid.Location.of(Grid.Row.Second, Grid.Column.Third)); modelCellChanged.fireEvent( new TicTacToeGridModel.CellsChangedEventObject(aGrid.getModel(), changedCells)); assertThat(aGrid.areaRepainted, is(true)); assertThat(aGrid.repaintedRegions, is(equivalentTo(expectedRepaintedRegions()))); }