assertThat(currentCoverage.getVariation3()).isNull();
}
@Test
public void shouldComputeVariationOfRuleMeasures() {
RuleFinder ruleFinder = mock(RuleFinder.class);
Rule rule1 = Rule.create("repo", "rule1");
rule1.setId(1);
Rule rule2 = Rule.create("repo", "rule2");
rule2.setId(2);
when(ruleFinder.findByKey(rule1.ruleKey())).thenReturn(rule1);
when(ruleFinder.findByKey(rule2.ruleKey())).thenReturn(rule2);
Resource dir = new Directory("org/foo");
PastMeasuresLoader pastMeasuresLoader = mock(PastMeasuresLoader.class);
PastSnapshot pastSnapshot1 = new PastSnapshot("days", new Date()).setIndex(1);