@Test public void throwsWithCorrectSyntaxErrorMessage() { Exception thrown = Assertions.assertThrows(SmithyBuildException.class, () -> { SmithyBuildConfig.load(Paths.get(getResourcePath("bad-syntax.json"))); }); assertThat(thrown.getMessage(), containsString("Error parsing")); }
public static SmithyBuildConfig load(Path file) { return builder().load(file).build(); }
SmithyBuildConfig implements ToSmithyBuilder<SmithyBuildConfig> { public static SmithyBuildConfig load(Path file) { return builder().load(file).build(); } }
SmithyBuildConfig implements ToSmithyBuilder<SmithyBuildConfig> { public static SmithyBuildConfig load(Path file) { return builder().load(file).build(); } private  SmithyBuildConfig(Builder builder); }
SmithyBuildConfig implements ToSmithyBuilder<SmithyBuildConfig> { public static SmithyBuildConfig load(Path file) { return builder().load(file).build(); } private  SmithyBuildConfig(Builder builder); static Builder builder(); static SmithyBuildConfig load(Path file); @Override Builder toBuilder(); String getVersion(); List<String> getImports(); Optional<String> getOutputDirectory(); Map<String, ProjectionConfig> getProjections(); Map<String, ObjectNode> getPlugins(); }
SmithyBuildConfig implements ToSmithyBuilder<SmithyBuildConfig> { public static SmithyBuildConfig load(Path file) { return builder().load(file).build(); } private  SmithyBuildConfig(Builder builder); static Builder builder(); static SmithyBuildConfig load(Path file); @Override Builder toBuilder(); String getVersion(); List<String> getImports(); Optional<String> getOutputDirectory(); Map<String, ProjectionConfig> getProjections(); Map<String, ObjectNode> getPlugins();  }