use of org.asqatasun.consolidator.Consolidator in project Asqatasun by Asqatasun.
the class ConsolidatorServiceImpl method consolidate.
@Override
public Collection<ProcessResult> consolidate(Collection<ProcessResult> grossResultList, Collection<Test> testList) {
List<ProcessResult> resultList = new ArrayList<>();
for (Test test : testList) {
// if the rule archive name is empty, the test is not launched
if (!test.getNoProcess()) {
RuleImplementation ruleImplementation = ruleImplementationLoaderService.loadRuleImplementation(test);
Consolidator consolidator = consolidatorFactory.create(grossResultList, ruleImplementation, ProcessRemarkServiceFactory.create(processRemarkDataService, evidenceElementDataService, evidenceDataService));
consolidator.run();
resultList.addAll(consolidator.getResult());
}
}
return resultList;
}
Aggregations