assertThat(PastMeasuresLoader.getValue(pastMeasure), is(80.0));
}
@Test
public void shouldKeepOnlyNumericalMetrics() {
Metric ncloc = new Metric("ncloc", Metric.ValueType.INT);
ncloc.setId(1);
Metric complexity = new Metric("complexity", Metric.ValueType.INT);
complexity.setId(2);
Metric data = new Metric("data", Metric.ValueType.DATA);
data.setId(3);
List<Metric> metrics = Arrays.asList(ncloc, complexity, data);
PastMeasuresLoader loader = new PastMeasuresLoader(getSession(), metrics);
assertThat(loader.getMetrics().size(), is(2));