(String path)
| 68 | } |
| 69 | |
| 70 | public static Stream<String> loadLines(String path) { |
| 71 | try{ |
| 72 | InputStream in = TestDivDetails.class |
| 73 | .getClassLoader() |
| 74 | .getResource(path) |
| 75 | .openStream(); |
| 76 | BufferedReader reader = new BufferedReader(new InputStreamReader(in)); |
| 77 | return reader.lines().onClose(asUncheckedRunnable(reader)); |
| 78 | } catch (IOException e) { |
| 79 | throw new UncheckedIOException(e); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Convert a Closeable to a Runnable by converting checked IOException |
no test coverage detected