@Test public void testAdd() { System.out.println("add"); MonitoringSampleResult res = new MonitoringSampleResult(); res.setSuccessful(true); res.setValue(1.0); AbstractMonitoringVisualizerImpl instance = new AbstractMonitoringVisualizerImpl(); instance.add(res); assertEquals(1, instance.getModelMulti().size()); assertEquals(1, instance.getModelMulti().firstEntry().getValue().size()); assertEquals(0, instance.getModelAggr().size()); }
@Override public void add(SampleResult res) { if (res.isSuccessful()) { if(isSampleIncluded(res)) { super.add(res); addMonitoringRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), MonitoringSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } }
AbstractMonitoringVisualizer extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if(isSampleIncluded(res)) { super.add(res); addMonitoringRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), MonitoringSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } }
AbstractMonitoringVisualizer extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if(isSampleIncluded(res)) { super.add(res); addMonitoringRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), MonitoringSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } AbstractMonitoringVisualizer(); }
AbstractMonitoringVisualizer extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if(isSampleIncluded(res)) { super.add(res); addMonitoringRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), MonitoringSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } AbstractMonitoringVisualizer(); @Override abstract String getWikiPage(); @Override abstract String getStaticLabel(); @Override String getLabelResource(); void clearErrorMessage(); @Override void clearData(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); @Override void add(SampleResult res); }
AbstractMonitoringVisualizer extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if(isSampleIncluded(res)) { super.add(res); addMonitoringRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), MonitoringSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } AbstractMonitoringVisualizer(); @Override abstract String getWikiPage(); @Override abstract String getStaticLabel(); @Override String getLabelResource(); void clearErrorMessage(); @Override void clearData(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); @Override void add(SampleResult res);  }