@Test public void testGetNewInputClauseName() { final InputClause inputClause1 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause1); inputClause1.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause1.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "1"); final InputClause inputClause2 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause2); inputClause2.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause2.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "2"); }
public static String getNewInputClauseName(final DecisionTable dtable) { return INPUT_CLAUSE_PREFIX + getMaxUnusedInputClauseIndex(dtable); }
DecisionTableDefaultValueUtilities { public static String getNewInputClauseName(final DecisionTable dtable) { return INPUT_CLAUSE_PREFIX + getMaxUnusedInputClauseIndex(dtable); } }
DecisionTableDefaultValueUtilities { public static String getNewInputClauseName(final DecisionTable dtable) { return INPUT_CLAUSE_PREFIX + getMaxUnusedInputClauseIndex(dtable); }  }
DecisionTableDefaultValueUtilities { public static String getNewInputClauseName(final DecisionTable dtable) { return INPUT_CLAUSE_PREFIX + getMaxUnusedInputClauseIndex(dtable); }  static String getNewInputClauseName(final DecisionTable dtable); static String getNewOutputClauseName(final DecisionTable dtable); static String getNewRuleAnnotationClauseName(final DecisionTable decisionTable); }
DecisionTableDefaultValueUtilities { public static String getNewInputClauseName(final DecisionTable dtable) { return INPUT_CLAUSE_PREFIX + getMaxUnusedInputClauseIndex(dtable); }  static String getNewInputClauseName(final DecisionTable dtable); static String getNewOutputClauseName(final DecisionTable dtable); static String getNewRuleAnnotationClauseName(final DecisionTable decisionTable); static final String INPUT_CLAUSE_PREFIX; static final String INPUT_CLAUSE_UNARY_TEST_TEXT; static final String OUTPUT_CLAUSE_PREFIX; static final String OUTPUT_CLAUSE_EXPRESSION_TEXT; static final String RULE_DESCRIPTION; static final String RULE_ANNOTATION_CLAUSE_PREFIX; static final String RULE_ANNOTATION_CLAUSE_EXPRESSION_TEXT; }