### Question:
PlotList { public Long getMax() { if (yList.isEmpty()) { return Long.valueOf(Long.MIN_VALUE); } return (Long) Collections.max(yList).longValue(); } 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; }### Answer:
@Test public void testGetMax() { list1.addValue(10F); list1.addValue(-3F); list1.addValue(3F); list1.addValue(30F); list1.addValue(-30F); list1.addValue(30000F); assertEquals(30000L, list1.getMax().longValue()); }
@Test public void testGetMaxIfEmpty() { assertEquals(Long.MIN_VALUE, list1.getMax().longValue()); }