@Test void testReadCodestartSpecDefault() throws IOException { final CodestartSpec codestartSpec = CodestartCatalogLoader .readCodestartSpec(resourceToString("codestart-specdefault.yml", StandardCharsets.UTF_8, Thread.currentThread().getContextClassLoader())); assertThat(codestartSpec.getName()).isEqualTo("specdefault"); assertThat(codestartSpec.getType()).isEqualTo(CODE); assertThat(codestartSpec.getTags()).isEmpty(); assertThat(codestartSpec.isPreselected()).isFalse(); assertThat(codestartSpec.isFallback()).isFalse(); assertThat(codestartSpec.getLanguagesSpec()).isEmpty(); assertThat(codestartSpec.getOutputStrategy()).isEmpty(); }
static CodestartSpec readCodestartSpec(String content) throws com.fasterxml.jackson.core.JsonProcessingException { return YAML_MAPPER.readerFor(CodestartSpec.class) .readValue(content); }
CodestartCatalogLoader { static CodestartSpec readCodestartSpec(String content) throws com.fasterxml.jackson.core.JsonProcessingException { return YAML_MAPPER.readerFor(CodestartSpec.class) .readValue(content); } }
CodestartCatalogLoader { static CodestartSpec readCodestartSpec(String content) throws com.fasterxml.jackson.core.JsonProcessingException { return YAML_MAPPER.readerFor(CodestartSpec.class) .readValue(content); } private  CodestartCatalogLoader(); }
CodestartCatalogLoader { static CodestartSpec readCodestartSpec(String content) throws com.fasterxml.jackson.core.JsonProcessingException { return YAML_MAPPER.readerFor(CodestartSpec.class) .readValue(content); } 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 { static CodestartSpec readCodestartSpec(String content) throws com.fasterxml.jackson.core.JsonProcessingException { return YAML_MAPPER.readerFor(CodestartSpec.class) .readValue(content); } 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);  }