@Test public void no_issues_with_invalid_report_path() throws IOException { List<ExternalIssue> externalIssues = executeSensorImporting(7, 2, "invalid-path.txt"); assertThat(externalIssues).isEmpty(); assertThat(onlyOneLogElement(logTester.logs(LoggerLevel.ERROR))) .startsWith("No issues information will be saved as the report file '") .contains("invalid-path.txt' can't be read."); }
private static boolean isEmpty(@Nullable String value) { return value == null || value.trim().isEmpty(); }
RuboCopSensor implements Sensor { private static boolean isEmpty(@Nullable String value) { return value == null || value.trim().isEmpty(); } }
RuboCopSensor implements Sensor { private static boolean isEmpty(@Nullable String value) { return value == null || value.trim().isEmpty(); }  }
RuboCopSensor implements Sensor { private static boolean isEmpty(@Nullable String value) { return value == null || value.trim().isEmpty(); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); }
RuboCopSensor implements Sensor { private static boolean isEmpty(@Nullable String value) { return value == null || value.trim().isEmpty(); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static final String REPORT_PROPERTY_KEY; }