use of org.asqatasun.entity.statistics.CriterionStatisticsImpl in project Asqatasun by Asqatasun.
the class WebResourceStatisticsDataServiceImpl method addResultToCriterionCounterMap.
/**
*
* @param testSolution
* @param criterion
* @param wrs
*/
private void addResultToCriterionCounterMap(TestSolution testSolution, Criterion criterion, WebResourceStatistics wrs, Map<Criterion, CriterionStatistics> csMap) {
if (csMap.containsKey(criterion)) {
CriterionStatistics cs = csMap.get(criterion);
incrementCriterionCounterFromTestSolution(cs, testSolution);
} else {
CriterionStatistics cs = new CriterionStatisticsImpl();
cs.setCriterion(criterion);
incrementCriterionCounterFromTestSolution(cs, testSolution);
csMap.put(criterion, cs);
}
}
Aggregations