SystemControlledColumnValuesSynchronizer { public void deleteRow(final int rowIndex) { prioritySynchronizer.deleteRow(rowIndex); updateSystemControlledColumnValues((a, b) -> {}); } SystemControlledColumnValuesSynchronizer(final GuidedDecisionTable52 model,
                                                    final GuidedDecisionTableUiModel uiModel,
                                                    final GridWidgetCellFactory gridWidgetCellFactory,
                                                    final CellUtilities cellUtilities,
                                                    final ColumnUtilities columnUtilities); void updateSystemControlledColumnValues(); void deleteRow(final int rowIndex); void insertRow(final int rowIndex); void appendRow();  }
@Test public void testDeletionOfRow() throws Exception { addRowWithPriorityOver(""); addRowWithPriorityOver("1"); addRowWithPriorityOver(""); addRowWithPriorityOver("2"); addRowWithPriorityOver("4"); modelSynchronizer.deleteRow(2); assertPriorities(Arrays.asList("", "1", "2", "3")); }
@Test public void testDeletionOfExplicitlyUsedRow() throws Exception { addRowWithPriorityOver(""); addRowWithPriorityOver("1"); addRowWithPriorityOver("1"); addRowWithPriorityOver("2"); addRowWithPriorityOver("4"); modelSynchronizer.deleteRow(0); assertPriorities(Arrays.asList("0", "0", "1", "3")); }