@Test public void should_parse_simple_types() { final Plugin fakePlugin = createFakePlugin("<a>a</a><b>b</b>"); final Map<String, Object> config = MavenConfigurationExtractor.extract((Xpp3Dom) fakePlugin.getConfiguration()); assertThat(config) .containsEntry("a", "a") .containsEntry("b", "b"); }
public static Map<String, Object> extract(Xpp3Dom root) { if (root == null) { return new HashMap<>(); } return getElement(root); }
MavenConfigurationExtractor { public static Map<String, Object> extract(Xpp3Dom root) { if (root == null) { return new HashMap<>(); } return getElement(root); } }
MavenConfigurationExtractor { public static Map<String, Object> extract(Xpp3Dom root) { if (root == null) { return new HashMap<>(); } return getElement(root); } private  MavenConfigurationExtractor(); }
MavenConfigurationExtractor { public static Map<String, Object> extract(Xpp3Dom root) { if (root == null) { return new HashMap<>(); } return getElement(root); } private  MavenConfigurationExtractor(); static Map<String, Object> extract(Xpp3Dom root); }
MavenConfigurationExtractor { public static Map<String, Object> extract(Xpp3Dom root) { if (root == null) { return new HashMap<>(); } return getElement(root); } private  MavenConfigurationExtractor(); static Map<String, Object> extract(Xpp3Dom root);  }