report.write("Package.html", packageReport, new File(out, "Package.html"));
}
public void testDumpProjectToHtmlFile() throws Exception {
ProjectReport packages = new ProjectReport("", grades,
new WeightedAverage());
packages.addPackage("a.b.c", 1);
packages.addPackage("a.b.d", 51);
packages.addPackage("a.b.e", 101);
ProjectReport classes = new ProjectReport(Testability.class.getPackage()
.getName(), grades, new WeightedAverage());
classes.addClass("a.b.C", 30);
classes.addClass("a.b.D", 80);
classes.addClass("a.b.E", 130);
classes.addClass("a.b.F", 13);
classes.addClass("a.b.G", 10);