}
}
}
Measure convertToItMeasure(Measure measure) {
Measure itMeasure = null;
Metric metric = measure.getMetric();
Double value = measure.getValue();
if (CoreMetrics.LINES_TO_COVER.equals(metric)) {
itMeasure = new Measure(CoreMetrics.IT_LINES_TO_COVER, value);
} else if (CoreMetrics.UNCOVERED_LINES.equals(metric)) {
itMeasure = new Measure(CoreMetrics.IT_UNCOVERED_LINES, value);
} else if (CoreMetrics.COVERAGE_LINE_HITS_DATA.equals(metric)) {
itMeasure = new Measure(CoreMetrics.IT_COVERAGE_LINE_HITS_DATA, measure.getData());
} else if (CoreMetrics.CONDITIONS_TO_COVER.equals(metric)) {
itMeasure = new Measure(CoreMetrics.IT_CONDITIONS_TO_COVER, value);
} else if (CoreMetrics.UNCOVERED_CONDITIONS.equals(metric)) {
itMeasure = new Measure(CoreMetrics.IT_UNCOVERED_CONDITIONS, value);
} else if (CoreMetrics.COVERED_CONDITIONS_BY_LINE.equals(metric)) {
itMeasure = new Measure(CoreMetrics.IT_COVERED_CONDITIONS_BY_LINE, measure.getData());
} else if (CoreMetrics.CONDITIONS_BY_LINE.equals(metric)) {
itMeasure = new Measure(CoreMetrics.IT_CONDITIONS_BY_LINE, measure.getData());
}
return itMeasure;
}