@Test public void testExtract() throws IOException, JAXBException { RulesExtractor e = new RulesExtractor(); Reader r = openFile("/DemoDAM.yml"); Map<String, MonitoringRules> extractedRules = e.extract(r); assertEquals(2, extractedRules.size()); assertEquals(6, extractedRules.get("java_ee_server").getMonitoringRules().size()); assertEquals(4, extractedRules.get("db").getMonitoringRules().size()); }
public Map<String, MonitoringRules> extract(String dam) throws JAXBException { StringReader reader = new StringReader(dam); return extract(reader); }
RulesExtractor { public Map<String, MonitoringRules> extract(String dam) throws JAXBException { StringReader reader = new StringReader(dam); return extract(reader); } }
RulesExtractor { public Map<String, MonitoringRules> extract(String dam) throws JAXBException { StringReader reader = new StringReader(dam); return extract(reader); } RulesExtractor(); }
RulesExtractor { public Map<String, MonitoringRules> extract(String dam) throws JAXBException { StringReader reader = new StringReader(dam); return extract(reader); } RulesExtractor(); Map<String, MonitoringRules> extract(String dam); Map<String, MonitoringRules> extract(Reader reader); Map<String, MonitoringRules> extract(Map yaml); Map<String, MonitoringRules> fromSerializedRules(String rulesString); }
RulesExtractor { public Map<String, MonitoringRules> extract(String dam) throws JAXBException { StringReader reader = new StringReader(dam); return extract(reader); } RulesExtractor(); Map<String, MonitoringRules> extract(String dam); Map<String, MonitoringRules> extract(Reader reader); Map<String, MonitoringRules> extract(Map yaml); Map<String, MonitoringRules> fromSerializedRules(String rulesString);  }