assertNull(ActiveCellEditorRegistry.getActiveCellEditor());
}
@Test
public void clickingOnTheCheckBoxMustToggleItsValue() throws Exception {
DefaultGridLayer layerStack = new DefaultGridLayer(
RowDataListFixture.getList(),
RowDataListFixture.getPropertyNames(),
RowDataListFixture.getPropertyToLabelMap());
natTable = new NatTableFixture(layerStack, 1200, 300, false);
// Enable editing
natTable.enableEditingOnAllCells();
// Calculate pixel value to click on
int columnIndex = RowDataListFixture
.getColumnIndexOfProperty(RowDataListFixture.PUBLISH_FLAG_PROP_NAME);
int columnPosition = columnIndex + ROW_HEADER_COLUMN_COUNT;
int startX = natTable.getStartXOfColumnPosition(columnPosition);
int columnWidth = natTable.getColumnWidthByPosition(columnPosition);
int startY = natTable.getStartYOfRowPosition(1);
int rowHeight = natTable.getRowHeightByPosition(1);
// Register check box for the publish flag column
DataLayer bodyDataLayer = (DataLayer) layerStack.getBodyDataLayer();
natTable.registerLabelOnColumn(bodyDataLayer, columnIndex, TEST_LABEL);
registerCheckBoxEditor(natTable.getConfigRegistry(),
new CheckBoxPainter(), new CheckBoxCellEditor());
natTable.configure();