@Test public void analyse_report_with_absolute_path() throws Exception { File reportFile = new File(baseDir, "coverage.xml"); configureReportPaths(reportFile.getAbsolutePath()); InputFile resource = addFileToContext("src/foobar.js"); sensor.analyse(project, context); verify(context, times(3)).saveMeasure(eq(resource), any(Measure.class)); }
@Override public void analyse(Project project, SensorContext context) { analyseWithLogger(context, LoggerFactory.getLogger(GenericCoverageSensor.class)); }
GenericCoverageSensor implements Sensor { @Override public void analyse(Project project, SensorContext context) { analyseWithLogger(context, LoggerFactory.getLogger(GenericCoverageSensor.class)); } }
GenericCoverageSensor implements Sensor { @Override public void analyse(Project project, SensorContext context) { analyseWithLogger(context, LoggerFactory.getLogger(GenericCoverageSensor.class)); } GenericCoverageSensor(Settings settings, FileSystem fs, ResourcePerspectives perspectives); }
GenericCoverageSensor implements Sensor { @Override public void analyse(Project project, SensorContext context) { analyseWithLogger(context, LoggerFactory.getLogger(GenericCoverageSensor.class)); } GenericCoverageSensor(Settings settings, FileSystem fs, ResourcePerspectives perspectives); @Override boolean shouldExecuteOnProject(Project project); @Override void analyse(Project project, SensorContext context); void analyseWithLogger(SensorContext context, Logger logger); @Override String toString(); }
GenericCoverageSensor implements Sensor { @Override public void analyse(Project project, SensorContext context) { analyseWithLogger(context, LoggerFactory.getLogger(GenericCoverageSensor.class)); } GenericCoverageSensor(Settings settings, FileSystem fs, ResourcePerspectives perspectives); @Override boolean shouldExecuteOnProject(Project project); @Override void analyse(Project project, SensorContext context); void analyseWithLogger(SensorContext context, Logger logger); @Override String toString();  }