use of org.drools.workbench.models.guided.dtable.shared.model.LimitedEntryActionInsertFactCol52 in project drools-wb by kiegroup.
the class ActionInsertFactWrapperTest method testCloneALimitedEntryActionInsert.
@Test
public void testCloneALimitedEntryActionInsert() throws Exception {
doReturn(GuidedDecisionTable52.TableFormat.LIMITED_ENTRY).when(model).getTableFormat();
final LimitedEntryActionInsertFactCol52 column = new LimitedEntryActionInsertFactCol52();
column.setFactField("factField");
column.setBoundName("boundName");
column.setValueList("valueList");
column.setHeader("header");
column.setInsertLogical(false);
column.setDefaultValue(new DTCellValue52("defaultValue"));
column.setFactType("factType");
column.setHideColumn(false);
column.setType("type");
column.setValue(new DTCellValue52("value"));
final ActionInsertFactWrapper wrapper = new ActionInsertFactWrapper(plugin, column);
final ActionInsertFactCol52 clone = wrapper.getActionCol52();
assertEquals("factField", column.getFactField());
assertEquals("boundName", column.getBoundName());
assertEquals("valueList", column.getValueList());
assertEquals("header", column.getHeader());
assertEquals(false, column.isInsertLogical());
assertEquals(new DTCellValue52("defaultValue"), column.getDefaultValue());
assertEquals("factType", column.getFactType());
assertEquals(false, column.isHideColumn());
assertEquals("type", column.getType());
assertEquals(new DTCellValue52("value"), column.getValue());
assertNotSame(column, clone);
}
Aggregations