DodecahedronList2 { public boolean editDodecahedron(String labelIn, String colorIn, double edgeIn) { if (arrSize != 0) { boolean result = false; for (int i = 0; i < arrSize; i++) { if (dodObjList[i].getLabel().equals(labelIn)) { dodObjList[i].setColor(colorIn); dodObjList[i].setEdge(edgeIn); result = true; break; } } return result; } else { return false; } } 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 editDodecahedronTest() 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); dodTest2.editDodecahedron("test4", "cyan", 425); Dodecahedron dTrue = new Dodecahedron("test4", "cyan", 425); Assert.assertEquals("", dTrue, dodTest2.findDodecahedron("test4")); }