@Override protected String getSource() throws IOException { return formatted(); } }
@Test public void testYamlMapFromMap() { Map<String, Object> map = new HashMap<>(); map.put("key", "value"); ImmutableMap<String, Object> immutableMap = ImmutableMap.copyOf(map); YamlMap yamlMap = new YamlMap(map); assertEquals("yaml map should have immutable map", immutableMap, yamlMap.dataTree()); }
@Override protected String getSource() throws IOException { return formatted(); } }