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