@Test(expected = ConstructorException.class) public void readBadVersion() throws ConfigurationException, UnsupportedEncodingException, IOException { try (Reader in = new InputStreamReader(getClass().getResourceAsStream("/srcdeps-bad-version.yaml"), "utf-8")) { new YamlConfigurationReader().read(in); } }
@Override public Configuration.Builder read(Reader in) throws ConfigurationException { Yaml yaml = new Yaml(new SrcdepsConstructor()); Configuration.Builder builder = yaml.loadAs(in, Configuration.Builder.class); return builder; }
YamlConfigurationReader implements ConfigurationReader { @Override public Configuration.Builder read(Reader in) throws ConfigurationException { Yaml yaml = new Yaml(new SrcdepsConstructor()); Configuration.Builder builder = yaml.loadAs(in, Configuration.Builder.class); return builder; } }
YamlConfigurationReader implements ConfigurationReader { @Override public Configuration.Builder read(Reader in) throws ConfigurationException { Yaml yaml = new Yaml(new SrcdepsConstructor()); Configuration.Builder builder = yaml.loadAs(in, Configuration.Builder.class); return builder; }  }
YamlConfigurationReader implements ConfigurationReader { @Override public Configuration.Builder read(Reader in) throws ConfigurationException { Yaml yaml = new Yaml(new SrcdepsConstructor()); Configuration.Builder builder = yaml.loadAs(in, Configuration.Builder.class); return builder; }  @Override Configuration.Builder read(Reader in); }
YamlConfigurationReader implements ConfigurationReader { @Override public Configuration.Builder read(Reader in) throws ConfigurationException { Yaml yaml = new Yaml(new SrcdepsConstructor()); Configuration.Builder builder = yaml.loadAs(in, Configuration.Builder.class); return builder; }  @Override Configuration.Builder read(Reader in);  }