assertThat(filteredMeasures.hasNext(), is(false));
}
@Test
public void rule() {
Rule rule1 = new Rule("pmd", "key1");
Rule rule2 = new Rule("pmd", "key2");
MeasuresFilter<RuleMeasure> filter = MeasuresFilters.rule(CoreMetrics.VIOLATIONS, rule1);
List<Measure> measures = Arrays.asList(
RuleMeasure.createForRule(CoreMetrics.VIOLATIONS, rule1, 50.0),
RuleMeasure.createForRule(CoreMetrics.VIOLATIONS, rule2, 10.0),
RuleMeasure.createForRule(CoreMetrics.INFO_VIOLATIONS, rule2, 3.3),