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