@Test public void assertUnmarshal() { FooYamlConfiguration actual = YamlEngine.unmarshal(YAML, FooYamlConfiguration.class); assertThat(actual.getFoo(), is("foo")); assertThat(actual.getBar(), is("bar")); assertThat(actual.getNest().getFoo(), is("nest_foo")); assertThat(actual.getNest().getBar(), is("nest_bar")); }
public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); } }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }  }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }  static String marshal(final Object value); static T unmarshal(final String yamlContent, final Class<T> classType); static T unmarshal(final String prefix, final InputStream configFileInput, final Class<T> classType); }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }  static String marshal(final Object value); static T unmarshal(final String yamlContent, final Class<T> classType); static T unmarshal(final String prefix, final InputStream configFileInput, final Class<T> classType);  }