Examples of XYAxis


Examples of plotter.xy.XYAxis

    Mockito.when(mockPlot.getEndTime()).thenReturn(new GregorianCalendar());
    Mockito.when(mockPlot.getAxisOrientationSetting()).thenReturn(AxisOrientationSetting.X_AXIS_AS_TIME);
    Mockito.when(mockPlot.getPlotAbstraction()).thenReturn(mockPlotAbstraction);
   
    QCPlotObjects testQC = new QCPlotObjects(mockPlot);
    XYAxis axis = testQC.plot.getPlotView().getYAxis();
    Assert.assertTrue(axis instanceof LinearXYAxis);
    NumberFormat format = ((LinearXYAxis) axis).getFormat();
    Assert.assertTrue(format.format(1111111).contains("E"));
    Assert.assertFalse(format.format(1).contains("E"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.