GregorianCalendar start = new GregorianCalendar();
GregorianCalendar end = new GregorianCalendar();
end.add(Calendar.HOUR, 1);
before.add(Calendar.HOUR, -1);
PlotSettings settings = new PlotSettings();
settings.setMinTime(start.getTimeInMillis());
settings.setMaxTime(end.getTimeInMillis());
PlotAbstraction plot = new PlotView.Builder(PlotterPlot.class).
plotSettings(settings).
build();
PlotterPlot testPlot = (PlotterPlot) plot.returnPlottingPackage();
Assert.assertFalse(((PlotDataManager)testPlot.getPlotDataManager()).scrunchProtect(end.getTimeInMillis()));
Assert.assertFalse(((PlotDataManager)testPlot.getPlotDataManager()).scrunchProtect(before.getTimeInMillis()));
settings = new PlotSettings();
settings.setMinTime(start.getTimeInMillis());
settings.setMaxTime(end.getTimeInMillis());
settings.setTimeAxisSubsequentSetting(TimeAxisSubsequentBoundsSetting.SCRUNCH);
plot = new PlotView.Builder(PlotterPlot.class).
plotSettings(settings).
build();
testPlot = (PlotterPlot) plot.returnPlottingPackage();