@Test public void testCharset() throws IOException { fileFinder = new InputFileFinder(null, null, null, StandardCharsets.US_ASCII); List<ClientInputFile> files = fileFinder.collect(root); assertThat(files).hasSize(2); assertThat(files).extracting("charset").containsOnly(StandardCharsets.US_ASCII); }
public List<ClientInputFile> collect(Path dir) throws IOException { final List<ClientInputFile> files = new ArrayList<>(); Files.walkFileTree(dir, new FileCollector(dir, files)); return files; }
InputFileFinder { public List<ClientInputFile> collect(Path dir) throws IOException { final List<ClientInputFile> files = new ArrayList<>(); Files.walkFileTree(dir, new FileCollector(dir, files)); return files; } }
InputFileFinder { public List<ClientInputFile> collect(Path dir) throws IOException { final List<ClientInputFile> files = new ArrayList<>(); Files.walkFileTree(dir, new FileCollector(dir, files)); return files; } InputFileFinder(@Nullable String srcGlobPattern, @Nullable String testsGlobPattern, @Nullable String excludeGlobPattern, Charset charset); }
InputFileFinder { public List<ClientInputFile> collect(Path dir) throws IOException { final List<ClientInputFile> files = new ArrayList<>(); Files.walkFileTree(dir, new FileCollector(dir, files)); return files; } InputFileFinder(@Nullable String srcGlobPattern, @Nullable String testsGlobPattern, @Nullable String excludeGlobPattern, Charset charset); List<ClientInputFile> collect(Path dir); }
InputFileFinder { public List<ClientInputFile> collect(Path dir) throws IOException { final List<ClientInputFile> files = new ArrayList<>(); Files.walkFileTree(dir, new FileCollector(dir, files)); return files; } InputFileFinder(@Nullable String srcGlobPattern, @Nullable String testsGlobPattern, @Nullable String excludeGlobPattern, Charset charset); List<ClientInputFile> collect(Path dir); static final String GLOB_PREFIX; }