DodecahedronList2 { public Dodecahedron findDodecahedronWithLongestEdge() { Dodecahedron[] dodTest = new Dodecahedron[1]; dodTest[0] = dodObjList[0]; for (int i = 0; i < arrSize; i++) { if (dodObjList[i].getEdge() > dodTest[0].getEdge()) { dodTest[0] = dodObjList[i]; } } return dodTest[0]; } 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 findDodecahedronWithLongestEdgeTest() throws Exception { setUp(); for (int i = 0; i < 5; i++) { Dodecahedron dodObj = new Dodecahedron("test" + i, "color" + i, i + .25); dodObjList[i] = dodObj; arrSizeTest++; } DodecahedronList2 dodTest2 = new DodecahedronList2(listName, dodObjList, arrSizeTest); Dodecahedron dTrue = new Dodecahedron("test4", "color4", 4.25); Assert.assertEquals("", dTrue, dodTest2.findDodecahedronWithLongestEdge()); }