use of org.drools.workbench.models.guided.dtable.shared.model.LimitedEntryBRLConditionColumn in project drools-wb by kiegroup.
the class LimitedEntryBRLConditionColumnSynchronizerTest method testUpdate.
@Test
public void testUpdate() throws VetoException {
final LimitedEntryBRLConditionColumn column = new LimitedEntryBRLConditionColumn();
column.setHeader("col1");
modelSynchronizer.appendColumn(column);
final LimitedEntryBRLConditionColumn edited = new LimitedEntryBRLConditionColumn();
edited.setHideColumn(true);
edited.setHeader("updated");
modelSynchronizer.updateColumn(column, edited);
assertEquals(1, model.getConditions().size());
assertEquals(3, uiModel.getColumns().size());
assertTrue(uiModel.getColumns().get(2) instanceof BooleanUiColumn);
assertEquals("updated", uiModel.getColumns().get(2).getHeaderMetaData().get(0).getTitle());
assertEquals(false, uiModel.getColumns().get(2).isVisible());
}
Aggregations