SurefireSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> dirs = SurefireUtils.getReportsDirectories(settings, fs, pathResolver); collect(context, dirs); } SurefireSensor(SurefireJavaParser surefireJavaParser, Configuration settings, FileSystem fs, PathResolver pathResolver); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); @Override String toString();  }
@Test void shouldNotFailIfReportsNotFound() { MapSettings settings = new MapSettings(); settings.setProperty(SurefireUtils.SUREFIRE_REPORT_PATHS_PROPERTY, "unknown"); SurefireSensor surefireSensor = new SurefireSensor(mock(SurefireJavaParser.class), settings.asConfig(), fs, pathResolver); surefireSensor.execute(mock(SensorContext.class)); }