@Test public void testAdd() { System.out.println("add"); SampleResult res = new PerfMonSampleResult(); res.setSuccessful(true); PerfMonGuiEmul instance = new PerfMonGuiEmul(); instance.add(res); assertEquals(1, instance.getModel_multi().size()); assertEquals(1, instance.getModel_multi().firstEntry().getValue().size()); assertEquals(0, instance.getModel_aggr().size()); }
@Override public void add(SampleResult res) { if (res.isSuccessful()) { if (isSampleIncluded(res)) { super.add(res); addPerfMonRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), PerfMonSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } }
PerfMonGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if (isSampleIncluded(res)) { super.add(res); addPerfMonRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), PerfMonSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } }
PerfMonGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if (isSampleIncluded(res)) { super.add(res); addPerfMonRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), PerfMonSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } PerfMonGui(); }
PerfMonGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if (isSampleIncluded(res)) { super.add(res); addPerfMonRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), PerfMonSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } PerfMonGui(); @Override String getWikiPage(); @Override String getLabelResource(); @Override String getStaticLabel(); void clearErrorMessage(); @Override void clearData(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); @Override void add(SampleResult res); }
PerfMonGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (res.isSuccessful()) { if (isSampleIncluded(res)) { super.add(res); addPerfMonRecord(res.getSampleLabel(), normalizeTime(res.getStartTime()), PerfMonSampleResult.getValue(res)); updateGui(null); } } else { addErrorMessage(res.getResponseMessage(), res.getStartTime()); } } PerfMonGui(); @Override String getWikiPage(); @Override String getLabelResource(); @Override String getStaticLabel(); void clearErrorMessage(); @Override void clearData(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); @Override void add(SampleResult res); static final List<String> metrics; static final String[] columnIdentifiers; static final Class[] columnClasses; }