@Test public void testClone() throws Exception { final ActionWorkItemSetFieldCol52 column = new ActionWorkItemSetFieldCol52(); column.setFactField("factField"); column.setBoundName("boundName"); column.setValueList("valueList"); column.setHeader("header"); column.setUpdate(false); column.setDefaultValue(new DTCellValue52("defaultValue")); column.setHideColumn(false); column.setType("type"); column.setParameterClassName("parameterClassName"); column.setWorkItemName("workItemName"); column.setWorkItemResultParameterName("workItemResultParameterName"); final ActionWorkItemSetWrapper wrapper = new ActionWorkItemSetWrapper(plugin, column); final ActionWorkItemSetFieldCol52 clone = wrapper.getActionCol52(); assertEquals("factField", column.getFactField()); assertEquals("boundName", column.getBoundName()); assertEquals("valueList", column.getValueList()); assertEquals("header", column.getHeader()); assertEquals(false, column.isUpdate()); assertEquals(new DTCellValue52("defaultValue"), column.getDefaultValue()); assertEquals(false, column.isHideColumn()); assertEquals("type", column.getType()); assertEquals("parameterClassName", column.getParameterClassName()); assertEquals("workItemName", column.getWorkItemName()); assertEquals("workItemResultParameterName", column.getWorkItemResultParameterName()); assertNotSame(column, clone); }
private ActionWorkItemSetFieldCol52 clone(final ActionWorkItemSetFieldCol52 column) { final ActionWorkItemSetFieldCol52 clone = new ActionWorkItemSetFieldCol52(); clone.setFactField(column.getFactField()); clone.setBoundName(column.getBoundName()); clone.setValueList(column.getValueList()); clone.setHeader(column.getHeader()); clone.setUpdate(column.isUpdate()); clone.setDefaultValue(column.getDefaultValue()); clone.setHideColumn(column.isHideColumn()); clone.setType(column.getType()); clone.setParameterClassName(column.getParameterClassName()); clone.setWorkItemName(column.getWorkItemName()); clone.setWorkItemResultParameterName(column.getWorkItemResultParameterName()); return clone; }
ActionWorkItemSetWrapper extends ActionSetFactWrapper implements ActionWorkItemWrapper { private ActionWorkItemSetFieldCol52 clone(final ActionWorkItemSetFieldCol52 column) { final ActionWorkItemSetFieldCol52 clone = new ActionWorkItemSetFieldCol52(); clone.setFactField(column.getFactField()); clone.setBoundName(column.getBoundName()); clone.setValueList(column.getValueList()); clone.setHeader(column.getHeader()); clone.setUpdate(column.isUpdate()); clone.setDefaultValue(column.getDefaultValue()); clone.setHideColumn(column.isHideColumn()); clone.setType(column.getType()); clone.setParameterClassName(column.getParameterClassName()); clone.setWorkItemName(column.getWorkItemName()); clone.setWorkItemResultParameterName(column.getWorkItemResultParameterName()); return clone; } }
ActionWorkItemSetWrapper extends ActionSetFactWrapper implements ActionWorkItemWrapper { private ActionWorkItemSetFieldCol52 clone(final ActionWorkItemSetFieldCol52 column) { final ActionWorkItemSetFieldCol52 clone = new ActionWorkItemSetFieldCol52(); clone.setFactField(column.getFactField()); clone.setBoundName(column.getBoundName()); clone.setValueList(column.getValueList()); clone.setHeader(column.getHeader()); clone.setUpdate(column.isUpdate()); clone.setDefaultValue(column.getDefaultValue()); clone.setHideColumn(column.isHideColumn()); clone.setType(column.getType()); clone.setParameterClassName(column.getParameterClassName()); clone.setWorkItemName(column.getWorkItemName()); clone.setWorkItemResultParameterName(column.getWorkItemResultParameterName()); return clone; } ActionWorkItemSetWrapper(final BaseDecisionTableColumnPlugin plugin,
                                    final ActionWorkItemSetFieldCol52 actionCol52);  ActionWorkItemSetWrapper(final BaseDecisionTableColumnPlugin plugin); }
ActionWorkItemSetWrapper extends ActionSetFactWrapper implements ActionWorkItemWrapper { private ActionWorkItemSetFieldCol52 clone(final ActionWorkItemSetFieldCol52 column) { final ActionWorkItemSetFieldCol52 clone = new ActionWorkItemSetFieldCol52(); clone.setFactField(column.getFactField()); clone.setBoundName(column.getBoundName()); clone.setValueList(column.getValueList()); clone.setHeader(column.getHeader()); clone.setUpdate(column.isUpdate()); clone.setDefaultValue(column.getDefaultValue()); clone.setHideColumn(column.isHideColumn()); clone.setType(column.getType()); clone.setParameterClassName(column.getParameterClassName()); clone.setWorkItemName(column.getWorkItemName()); clone.setWorkItemResultParameterName(column.getWorkItemResultParameterName()); return clone; } ActionWorkItemSetWrapper(final BaseDecisionTableColumnPlugin plugin,
                                    final ActionWorkItemSetFieldCol52 actionCol52);  ActionWorkItemSetWrapper(final BaseDecisionTableColumnPlugin plugin); @Override List<BaseColumnFieldDiff> diff(final BaseColumn otherColumn); @Override String getWorkItemName(); @Override void setWorkItemName(final String workItemName); @Override String getWorkItemResultParameterName(); @Override void setWorkItemResultParameterName(final String workItemResultParameterName); @Override String getParameterClassName(); @Override void setParameterClassName(final String parameterClassName); @Override ActionWorkItemSetFieldCol52 getActionCol52(); }
ActionWorkItemSetWrapper extends ActionSetFactWrapper implements ActionWorkItemWrapper { private ActionWorkItemSetFieldCol52 clone(final ActionWorkItemSetFieldCol52 column) { final ActionWorkItemSetFieldCol52 clone = new ActionWorkItemSetFieldCol52(); clone.setFactField(column.getFactField()); clone.setBoundName(column.getBoundName()); clone.setValueList(column.getValueList()); clone.setHeader(column.getHeader()); clone.setUpdate(column.isUpdate()); clone.setDefaultValue(column.getDefaultValue()); clone.setHideColumn(column.isHideColumn()); clone.setType(column.getType()); clone.setParameterClassName(column.getParameterClassName()); clone.setWorkItemName(column.getWorkItemName()); clone.setWorkItemResultParameterName(column.getWorkItemResultParameterName()); return clone; } ActionWorkItemSetWrapper(final BaseDecisionTableColumnPlugin plugin,
                                    final ActionWorkItemSetFieldCol52 actionCol52);  ActionWorkItemSetWrapper(final BaseDecisionTableColumnPlugin plugin); @Override List<BaseColumnFieldDiff> diff(final BaseColumn otherColumn); @Override String getWorkItemName(); @Override void setWorkItemName(final String workItemName); @Override String getWorkItemResultParameterName(); @Override void setWorkItemResultParameterName(final String workItemResultParameterName); @Override String getParameterClassName(); @Override void setParameterClassName(final String parameterClassName); @Override ActionWorkItemSetFieldCol52 getActionCol52();  }