@Test public void testAdd() throws IOException { System.out.println("add"); AggregateReportGui instance = new AggregateReportGui(); SampleResult res = new SampleResult(); instance.add(res); SampleResult res2 = new SampleResult(); instance.add(res2); ResultCollector rc = new ResultCollector(); rc.setListener(instance); rc.sampleOccurred(new SampleEvent(res, "")); rc.sampleOccurred(new SampleEvent(res2, "")); File f = File.createTempFile("test", ".csv"); instance.getGraphPanelChart().saveGraphToCSV(f); }
@Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (tableRows) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); statModel.insertRow(row, statModel.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } }
AggregateReportGui extends AbstractGraphPanelVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (tableRows) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); statModel.insertRow(row, statModel.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } } }
AggregateReportGui extends AbstractGraphPanelVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (tableRows) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); statModel.insertRow(row, statModel.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } } AggregateReportGui(); }
AggregateReportGui extends AbstractGraphPanelVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (tableRows) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); statModel.insertRow(row, statModel.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } } AggregateReportGui(); @Override Collection<String> getMenuCategories(); @Override String getLabelResource(); @Override void add(SampleResult res); @Override final void clearData(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override String getWikiPage(); @Override GraphPanelChart getGraphPanelChart(); @Override String getStaticLabel(); }
AggregateReportGui extends AbstractGraphPanelVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } SamplingStatCalculator row; final String sampleLabel = res.getSampleLabel(useGroupName.isSelected()); synchronized (tableRows) { row = tableRows.get(sampleLabel); if (row == null) { row = new SamplingStatCalculator(sampleLabel); tableRows.put(row.getLabel(), row); statModel.insertRow(row, statModel.getRowCount() - 1); } } synchronized (row) { row.addSample(res); } SamplingStatCalculator tot = tableRows.get(TOTAL_ROW_LABEL); synchronized (tot) { tot.addSample(res); } } AggregateReportGui(); @Override Collection<String> getMenuCategories(); @Override String getLabelResource(); @Override void add(SampleResult res); @Override final void clearData(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override String getWikiPage(); @Override GraphPanelChart getGraphPanelChart(); @Override String getStaticLabel();  }