Skip to content

Commit

Permalink
fix: call correct method to get criteria eligible for standards
Browse files Browse the repository at this point in the history
OCD-4333
  • Loading branch information
Todd Young committed Nov 27, 2023
1 parent 75e0910 commit d7ff8ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ public List<CertificationCriterion> getCriteriaForFunctionalitiesTested() {
.collect(Collectors.toList());
}

public List<CertificationCriterion> getCriteriaForStandards() {
return getAllCriteriaAttributeEntities().stream()
.filter(att -> att.getStandard())
.map(cca -> cca.getCriterion().toDomain())
.collect(Collectors.toList());
}

@Transactional(readOnly = true)
public List<CertificationCriterionAttributeEntity> getAllCriteriaAttributes() {
return getAllCriteriaAttributeEntities().stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public List<Standard> getAll() {

@Transactional
public List<CertificationCriterion> getCertificationCriteriaForStandards() {
return certificationCriterionAttributeDAO.getCriteriaForFunctionalitiesTested();
return certificationCriterionAttributeDAO.getCriteriaForStandards();
}


Expand Down

0 comments on commit d7ff8ca

Please sign in to comment.