@Test void uncheckedLinesNonexistentTest() { final File file = new File(getClass().getResource("/users.auth").getFile()).getParentFile(); final Path path = new File(file, "nonexistent.file").toPath(); assertEquals(0L, BasicAuthUtils.uncheckedLines(path).count()); }
public static Stream<String> uncheckedLines(final Path path) { try { return Files.lines(path); } catch (final IOException ex) { LOGGER.error("Error processing credentials file", ex); } return Stream.empty(); }
BasicAuthUtils { public static Stream<String> uncheckedLines(final Path path) { try { return Files.lines(path); } catch (final IOException ex) { LOGGER.error("Error processing credentials file", ex); } return Stream.empty(); } }
BasicAuthUtils { public static Stream<String> uncheckedLines(final Path path) { try { return Files.lines(path); } catch (final IOException ex) { LOGGER.error("Error processing credentials file", ex); } return Stream.empty(); } private  BasicAuthUtils(); }
BasicAuthUtils { public static Stream<String> uncheckedLines(final Path path) { try { return Files.lines(path); } catch (final IOException ex) { LOGGER.error("Error processing credentials file", ex); } return Stream.empty(); } private  BasicAuthUtils(); static Stream<String> uncheckedLines(final Path path); }
BasicAuthUtils { public static Stream<String> uncheckedLines(final Path path) { try { return Files.lines(path); } catch (final IOException ex) { LOGGER.error("Error processing credentials file", ex); } return Stream.empty(); } private  BasicAuthUtils(); static Stream<String> uncheckedLines(final Path path);  }