public static Criterion createValidCriterion(String name, String description) { CriterionType criterionType = CriterionTypeDAOTest.createValidCriterionType(); return Criterion.withNameAndType(name, criterionType); }
private Criterion givenACriterionWithAnExistentType() { this.criterion = createValidCriterion(); CriterionType type = ensureTypeExists(CriterionTypeDAOTest.createValidCriterionType()); this.criterion.setType(type); return this.criterion; }