PlotDataManager implements AbstractPlotDataManager { void informUpdateFromLiveDataStreamCompleted() { if (scrunchBufferTruncationOccured || bufferRequestWaiting) { resizeAndReloadPlotBuffer(); scrunchBufferTruncationOccured = false; bufferRequestWaiting = false; } } PlotDataManager(PlotterPlot thePlot); @Override void addDataSet(String dataSetName, Color plottingColor); @Override void addData(String feed, SortedMap<Long, Double> points); void resizeAndReloadPlotBuffer(); @Override void informUpdateCacheDataStreamStarted(); void informResizeEvent(); @Override PlotDataSeries getNamedDataSeries(String name); void setDataSeries(Map<String, PlotDataSeries> dataSeries); Map<String, PlotDataSeries> getDataSeries(); void setPlot(PlotterPlot plot); AbstractPlottingPackage getPlot();  }
@Test public void testinformUpdateFromLiveDataStreamCompleted() { PlotAbstraction plot = new PlotView.Builder(PlotterPlot.class). build(); PlotterPlot testPlot = (PlotterPlot) plot.returnPlottingPackage(); TestPlotDataManagerImplementation dm = new TestPlotDataManagerImplementation(testPlot); testPlot.setPlotDataManager(dm); dm.resizeAndReloadCalled = false; }