@Test void testLoadCodestartsFromSubDir() throws IOException { final CodestartCatalog<CodestartProjectInput> catalog = CodestartCatalogLoader.loadDefaultCatalog(resourceLoader, "codestarts/examples"); assertThat(catalog.getCodestarts()).extracting(Codestart::getName) .containsExactlyInAnyOrder("example1", "example2", "example-forbidden"); }
public static CodestartCatalog<CodestartProjectInput> loadDefaultCatalog(CodestartPathLoader pathLoader, String first, String... more) throws IOException { final List<Codestart> codestarts = loadCodestarts(pathLoader, first, more); return new GenericCodestartCatalog<>(codestarts); }
CodestartCatalogLoader { public static CodestartCatalog<CodestartProjectInput> loadDefaultCatalog(CodestartPathLoader pathLoader, String first, String... more) throws IOException { final List<Codestart> codestarts = loadCodestarts(pathLoader, first, more); return new GenericCodestartCatalog<>(codestarts); } }
CodestartCatalogLoader { public static CodestartCatalog<CodestartProjectInput> loadDefaultCatalog(CodestartPathLoader pathLoader, String first, String... more) throws IOException { final List<Codestart> codestarts = loadCodestarts(pathLoader, first, more); return new GenericCodestartCatalog<>(codestarts); } private  CodestartCatalogLoader(); }
CodestartCatalogLoader { public static CodestartCatalog<CodestartProjectInput> loadDefaultCatalog(CodestartPathLoader pathLoader, String first, String... more) throws IOException { final List<Codestart> codestarts = loadCodestarts(pathLoader, first, more); return new GenericCodestartCatalog<>(codestarts); } private  CodestartCatalogLoader(); static CodestartCatalog<CodestartProjectInput> loadDefaultCatalog(CodestartPathLoader pathLoader,
            String first,
            String... more); static Collection<Codestart> loadUserDirectoryCodestarts(Path directory); static List<Codestart> loadCodestarts(CodestartPathLoader pathLoader, String first, String... more); }
CodestartCatalogLoader { public static CodestartCatalog<CodestartProjectInput> loadDefaultCatalog(CodestartPathLoader pathLoader, String first, String... more) throws IOException { final List<Codestart> codestarts = loadCodestarts(pathLoader, first, more); return new GenericCodestartCatalog<>(codestarts); } private  CodestartCatalogLoader(); static CodestartCatalog<CodestartProjectInput> loadDefaultCatalog(CodestartPathLoader pathLoader,
            String first,
            String... more); static Collection<Codestart> loadUserDirectoryCodestarts(Path directory); static List<Codestart> loadCodestarts(CodestartPathLoader pathLoader, String first, String... more);  }