ScenarioCsvDownloadReport { protected void printOverallStatsLine(CSVPrinter printer, int available, int executed, double coveragePercentage) throws IOException { printer.printRecord(Arrays.asList(available, executed, coveragePercentage)); }  String getReport(SimulationRunMetadata simulationRunMetadata, ScenarioSimulationModel.Type modelType);  }
@Test public void printOverallStatsLine() throws IOException { StringBuilder stringBuilder = new StringBuilder(); CSVPrinter printer = getCSVPrinter(stringBuilder); AuditLog auditLog = new AuditLog(); auditLog.addAuditLogLine(getAuditLogLine()); SimulationRunMetadata simulationRunMetadata = getSimulationRunMetadata(auditLog); scenarioCsvDownloadReport.printOverallStatsLine(printer, simulationRunMetadata.getAvailable(), simulationRunMetadata.getExecuted(), simulationRunMetadata.getCoveragePercentage()); String retrieved = stringBuilder.toString(); List<String> data = Arrays.asList(String.valueOf(simulationRunMetadata.getAvailable()), String.valueOf(simulationRunMetadata.getExecuted()), String.valueOf(simulationRunMetadata.getCoveragePercentage())); commonCheckRetrievedString(retrieved, data); }