DodecahedronList2 { public String summaryInfo() { DecimalFormat fmt = new DecimalFormat("#,##0.0##"); return "----- Summary for " + listName + " -----\n" + "Number of Dodecahedrons: " + arrSize + "\n" + "Total Surface Area: " + fmt.format(totalSurfaceArea()) + "\n" + "Total Volume: " + fmt.format(totalVolume()) + "\n" + "Average Surface Area: " + fmt.format(averageSurfaceArea()) + "\n" + "Average Volume: " + fmt.format(averageVolume()) + "\n" + "Average Surface/Volume Ratio: " + fmt.format(averageSurfaceToVolumeRatio()); } DodecahedronList2(String listNameIn, Dodecahedron[] dodObjListIn,
                                                             int arrSizeIn); String getName(); int numberOfDodecahedrons(); double totalSurfaceArea(); double totalVolume(); double averageSurfaceArea(); double averageVolume(); double averageSurfaceToVolumeRatio(); String toString(); String summaryInfo(); Dodecahedron[] getList(); DodecahedronList2 readFile(String fileNameIn); void addDodecahedron(String labelIn, String colorIn, double edgeIn); Dodecahedron findDodecahedron(String labelIn); Dodecahedron deleteDodecahedron(String labelIn); boolean editDodecahedron(String labelIn, String colorIn, 
                                                   double edgeIn); Dodecahedron findDodecahedronWithShortestEdge(); Dodecahedron findDodecahedronWithLongestEdge(); Dodecahedron findDodecahedronWithSmallestVolume(); Dodecahedron findDodecahedronWithLargestVolume();  }
@Test public void summaryInfoTest() throws Exception { setUp(); for (int i = 0; i < 5; i++) { Dodecahedron dodObj = new Dodecahedron("test" + i, "color" + i, i + .25); dodObjList[i] = dodObj; } DodecahedronList2 dodTest2 = new DodecahedronList2(listName, dodObjList, arrSizeTest); Assert.assertEquals("", true, dodTest2.summaryInfo() .contains("Total Volume: ")); }