PlotList { public int getSize() { return xList.size(); } PlotList(String pltfileName,String pngpath,String folderWhereResultsAreSaved,
			String xcomment,String ycomment,int scale,boolean issampled,String color, String unit);  PlotList(String pltfileName,String pngpath,String folderWhereResultsAreSaved,
			String xcomment,String ycomment,int scale,boolean issampled,String color, String unit, int type);  PlotList(String pltfileName,String pngpath,String folderWhereResultsAreSaved,
			String xcomment,String ycomment,int scale,boolean issampled,String color);  PlotList(); long getInitialValue(); void setScale(int scale); int getScale(); synchronized void addValue(Float y); synchronized void addValue(Long x, Float y); synchronized void changeTimeScale(Long x); synchronized void addNewlineinfile(long Xvalue, float YValue); void addNewlineinfile(long Xvalue,String YValue); void closefile(); Long getXScale(long range); Long getMin(); Long getMax(); double getAverage(); double getTotal(); double getDelta(); boolean isEmpty(); int getSize(); Long getX(int index); Float getY(int index); void setFolder(String folder); String getFolder(); void setYComment(String yComment); String getYComment(); void setXComment(String xComment); String getXComment(); File getPltfile(); void setPltfile(File pltfile); String getPngpath(); void setPngpath(String pngpath); boolean isSampled(); String getColor(); String getunit(); int getType(); static int TYPE_AVG; static int TYPE_SUM; }
@Test public void testGetSize() { PlotList list1=null; list1 = new PlotList("test","c:","c:","x comment","y comment",1,true,"blue"); list1.addValue(10F); assertEquals(1, list1.getSize()); list1.addValue(10F); assertEquals(2, list1.getSize()); for (int i = 0; i < 100; i++) { list1.addValue(10F); } assertEquals(102, list1.getSize()); }