@Test public void testAdd() { System.out.println("add"); SampleResult res = new SampleResult(); res.setAllThreads(1); res.setThreadName("test 1-2"); TransactionsPerSecondGui instance = new TransactionsPerSecondGui(); instance.add(res); res.sampleStart(); try { Thread.sleep(10); } catch (InterruptedException ex) { } res.sampleEnd(); instance.add(res); }
@Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } super.add(res); if (res.isSuccessful()) { addTransaction(true, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } else { addTransaction(false, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } updateGui(null); }
TransactionsPerSecondGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } super.add(res); if (res.isSuccessful()) { addTransaction(true, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } else { addTransaction(false, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } updateGui(null); } }
TransactionsPerSecondGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } super.add(res); if (res.isSuccessful()) { addTransaction(true, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } else { addTransaction(false, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } updateGui(null); } TransactionsPerSecondGui(); }
TransactionsPerSecondGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } super.add(res); if (res.isSuccessful()) { addTransaction(true, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } else { addTransaction(false, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } updateGui(null); } TransactionsPerSecondGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void add(SampleResult res); @Override String getWikiPage(); }
TransactionsPerSecondGui extends AbstractOverTimeVisualizer { @Override public void add(SampleResult res) { if (!isSampleIncluded(res)) { return; } super.add(res); if (res.isSuccessful()) { addTransaction(true, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } else { addTransaction(false, res.getSampleLabel(), normalizeTime(res.getEndTime()), 1); } updateGui(null); } TransactionsPerSecondGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override void add(SampleResult res); @Override String getWikiPage();  }