when(context.getResource((File) anyObject())).thenReturn(resourceMock);
}
@Test
public void shouldReportCorrectCoverage() {
Settings settings = new Settings();
settings.setProperty(CxxCoverageSensor.REPORT_PATH_KEY, "coverage-reports/bullseye/coverage-result-bullseye.xml");
settings.setProperty(CxxCoverageSensor.IT_REPORT_PATH_KEY, "coverage-reports/bullseye/coverage-result-bullseye.xml");
settings.setProperty(CxxCoverageSensor.OVERALL_REPORT_PATH_KEY, "coverage-reports/bullseye/coverage-result-bullseye.xml");
sensor = new CxxCoverageSensor(settings, fs);
sensor.analyse(project, context);
verify(context, times(90)).saveMeasure((File) anyObject(), any(Measure.class));
}