@Test public void populateDecisionTable() { final GuidedDecisionTable52 dtable = new GuidedDecisionTable52(); final ArrayList<DTCellValue52> row = new ArrayList<>(); final DTCellValue52 rowNumber = new DTCellValue52(1); final DTCellValue52 description = new DTCellValue52(""); row.add(rowNumber); row.add(description); ruleNameBuilder.addCellValue(0, 0, ""); dtable.getData().add(row); ruleNameBuilder.populateDecisionTable(dtable, 1); assertEquals(3, row.size()); assertEquals(rowNumber, row.get(GuidedDecisionTable52.RULE_NUMBER_INDEX)); assertEquals(description, row.get(GuidedDecisionTable52.RULE_DESCRIPTION_INDEX)); }
@Override public void populateDecisionTable(final GuidedDecisionTable52 dtable, final int maxRowCount) { if (values.size() < maxRowCount) { for (int iRow = values.size(); iRow < maxRowCount; iRow++) { values.add(new DTCellValue52("")); } } for (int iRow = 0; iRow < values.size(); iRow++) { dtable.getData().get(iRow).add(GuidedDecisionTable52.RULE_NAME_COLUMN_INDEX, values.get(iRow)); } }
RuleNameBuilder implements
        GuidedDecisionTableSourceBuilderDirect { @Override public void populateDecisionTable(final GuidedDecisionTable52 dtable, final int maxRowCount) { if (values.size() < maxRowCount) { for (int iRow = values.size(); iRow < maxRowCount; iRow++) { values.add(new DTCellValue52("")); } } for (int iRow = 0; iRow < values.size(); iRow++) { dtable.getData().get(iRow).add(GuidedDecisionTable52.RULE_NAME_COLUMN_INDEX, values.get(iRow)); } } }
RuleNameBuilder implements
        GuidedDecisionTableSourceBuilderDirect { @Override public void populateDecisionTable(final GuidedDecisionTable52 dtable, final int maxRowCount) { if (values.size() < maxRowCount) { for (int iRow = values.size(); iRow < maxRowCount; iRow++) { values.add(new DTCellValue52("")); } } for (int iRow = 0; iRow < values.size(); iRow++) { dtable.getData().get(iRow).add(GuidedDecisionTable52.RULE_NAME_COLUMN_INDEX, values.get(iRow)); } }  }
RuleNameBuilder implements
        GuidedDecisionTableSourceBuilderDirect { @Override public void populateDecisionTable(final GuidedDecisionTable52 dtable, final int maxRowCount) { if (values.size() < maxRowCount) { for (int iRow = values.size(); iRow < maxRowCount; iRow++) { values.add(new DTCellValue52("")); } } for (int iRow = 0; iRow < values.size(); iRow++) { dtable.getData().get(iRow).add(GuidedDecisionTable52.RULE_NAME_COLUMN_INDEX, values.get(iRow)); } }  @Override Code getActionTypeCode(); @Override void populateDecisionTable(final GuidedDecisionTable52 dtable,
                                      final int maxRowCount); @Override void addCellValue(final int row,
                             final int column,
                             final String value); @Override void clearValues(); @Override boolean hasValues(); @Override String getResult(); @Override void addTemplate(final int row,
                            final int col,
                            final String content); @Override int getRowCount(); @Override int getColumn(); }
RuleNameBuilder implements
        GuidedDecisionTableSourceBuilderDirect { @Override public void populateDecisionTable(final GuidedDecisionTable52 dtable, final int maxRowCount) { if (values.size() < maxRowCount) { for (int iRow = values.size(); iRow < maxRowCount; iRow++) { values.add(new DTCellValue52("")); } } for (int iRow = 0; iRow < values.size(); iRow++) { dtable.getData().get(iRow).add(GuidedDecisionTable52.RULE_NAME_COLUMN_INDEX, values.get(iRow)); } }  @Override Code getActionTypeCode(); @Override void populateDecisionTable(final GuidedDecisionTable52 dtable,
                                      final int maxRowCount); @Override void addCellValue(final int row,
                             final int column,
                             final String value); @Override void clearValues(); @Override boolean hasValues(); @Override String getResult(); @Override void addTemplate(final int row,
                            final int col,
                            final String content); @Override int getRowCount(); @Override int getColumn();  }