@Test void not_xml_report() throws IOException { List<ExternalIssue> externalIssues = execute("hello.txt"); assertThat(externalIssues).isEmpty(); assertThat(logTester.logs(LoggerLevel.ERROR).get(0)).startsWith("Failed to import external issues report:"); }
@Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); } }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }  }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static final String REPORT_PROPERTY_KEY; static final String LINTER_KEY; static final ExternalRuleLoader RULE_LOADER; }