@Test void testSimpleLoading() throws IOException, ObjectMappingException { final URL url = getClass().getResource("/example.yml"); final ConfigurationLoader<BasicConfigurationNode> loader = YamlConfigurationLoader.builder() .setUrl(url).build(); final ConfigurationNode node = loader.load(); assertEquals("unicorn", node.getNode("test", "op-level").getValue()); assertEquals("dragon", node.getNode("other", "op-level").getValue()); assertEquals("dog park", node.getNode("other", "location").getValue()); final List<Map<String, List<String>>> fooList = new ArrayList<>(node.getNode("foo") .getList(new TypeToken<Map<String, List<String>>>() {})); assertEquals(0, fooList.get(0).get("bar").size()); }
public static Builder builder() { return new Builder(); }
YamlConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { public static Builder builder() { return new Builder(); } }
YamlConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { public static Builder builder() { return new Builder(); } private  YamlConfigurationLoader(final Builder builder); }
YamlConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { public static Builder builder() { return new Builder(); } private  YamlConfigurationLoader(final Builder builder); static Builder builder(); @Override BasicConfigurationNode createNode(final ConfigurationOptions options); }
YamlConfigurationLoader extends AbstractConfigurationLoader<BasicConfigurationNode> { public static Builder builder() { return new Builder(); } private  YamlConfigurationLoader(final Builder builder); static Builder builder(); @Override BasicConfigurationNode createNode(final ConfigurationOptions options);  }