ScenarioCsvDownloadReport { protected void generateAuditLogHeader(CSVPrinter printer, ScenarioSimulationModel.Type modelType) throws IOException { if (ScenarioSimulationModel.Type.DMN.equals(modelType)) { printer.printRecord(DMN_AUDIT_HEADER); } else { printer.printRecord(RULE_AUDIT_HEADER); } }  String getReport(SimulationRunMetadata simulationRunMetadata, ScenarioSimulationModel.Type modelType);  }
@Test public void generateAuditLogHeaderRULE() throws IOException { StringBuilder stringBuilder = new StringBuilder(); CSVPrinter printer = getCSVPrinter(stringBuilder); scenarioCsvDownloadReport.generateAuditLogHeader(printer, RULE); String retrieved = stringBuilder.toString(); commonCheckHeader(RULE_AUDIT_HEADER, retrieved); }
@Test public void generateAuditLogHeaderDMN() throws IOException { StringBuilder stringBuilder = new StringBuilder(); CSVPrinter printer = getCSVPrinter(stringBuilder); scenarioCsvDownloadReport.generateAuditLogHeader(printer, DMN); String retrieved = stringBuilder.toString(); commonCheckHeader(DMN_AUDIT_HEADER, retrieved); }