Search in sources :

Example 1 with CriterionStatisticsImpl

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);
    }
}
Also used : CriterionStatistics(org.asqatasun.entity.statistics.CriterionStatistics) CriterionStatisticsImpl(org.asqatasun.entity.statistics.CriterionStatisticsImpl)

Aggregations

CriterionStatistics (org.asqatasun.entity.statistics.CriterionStatistics)1 CriterionStatisticsImpl (org.asqatasun.entity.statistics.CriterionStatisticsImpl)1