use of org.asqatasun.processor.Processor in project Asqatasun by Asqatasun.
the class ProcessorServiceImpl method process.
@Override
public Collection<ProcessResult> process(Collection<Content> contentList, Collection<Test> testList) {
Collection<ProcessResult> processResultList = new ArrayList<>();
Processor processor = processorFactory.create();
for (Content content : contentList) {
if (content instanceof SSP) {
processor.setSSP((SSP) content);
for (Test test : testList) {
if (!test.getNoProcess()) {
RuleImplementation ruleImplementation = ruleImplementationLoaderService.loadRuleImplementation(test);
processor.setRuleImplementation(ruleImplementation);
processor.run();
processResultList.add(processor.getResult());
}
}
}
}
return processResultList;
}
Aggregations