@Test(expected = YAMLException.class) public void verifyDuplicateKeysDisallowedWithParameterizedLoad() throws Exception { Path temp = Files.createTempFile("digdag-YamlConfigLoaderTest", ".yml"); Files.write(temp, "{\"a\":1, \"a\":2}".getBytes(UTF_8)); loader.loadParameterizedFile(temp.toFile(), null); }
public ConfigElement loadParameterizedFile(File file, Config params) throws IOException { return ConfigElement.of(loadParameterizedInclude(file.toPath(), params)); }
YamlConfigLoader { public ConfigElement loadParameterizedFile(File file, Config params) throws IOException { return ConfigElement.of(loadParameterizedInclude(file.toPath(), params)); } }
YamlConfigLoader { public ConfigElement loadParameterizedFile(File file, Config params) throws IOException { return ConfigElement.of(loadParameterizedInclude(file.toPath(), params)); } @Inject  YamlConfigLoader(); }
YamlConfigLoader { public ConfigElement loadParameterizedFile(File file, Config params) throws IOException { return ConfigElement.of(loadParameterizedInclude(file.toPath(), params)); } @Inject  YamlConfigLoader(); ConfigElement loadFile(File file); ConfigElement loadString(String content); ConfigElement loadParameterizedFile(File file, Config params); }
YamlConfigLoader { public ConfigElement loadParameterizedFile(File file, Config params) throws IOException { return ConfigElement.of(loadParameterizedInclude(file.toPath(), params)); } @Inject  YamlConfigLoader(); ConfigElement loadFile(File file); ConfigElement loadString(String content); ConfigElement loadParameterizedFile(File file, Config params);  }