@Test public void printAuditLogLine() throws IOException { StringBuilder stringBuilder = new StringBuilder(); CSVPrinter printer = getCSVPrinter(stringBuilder); AuditLogLine auditLogLine = getAuditLogLine(); scenarioCsvDownloadReport.printAuditLogLine(auditLogLine, printer); String retrieved = stringBuilder.toString(); List<String> data = Arrays.asList(String.valueOf(auditLogLine.getScenarioIndex()), "\"" + auditLogLine.getScenario() + "\"", String.valueOf(auditLogLine.getExecutionIndex()), "\"" + auditLogLine.getDecisionOrRuleName() + "\"", auditLogLine.getResult(), auditLogLine.getMessage().orElse("")); commonCheckRetrievedString(retrieved, data); }
protected void printAuditLogLine(AuditLogLine toPrint, CSVPrinter printer) throws IOException { printer.print(toPrint.getScenarioIndex()); printer.print(toPrint.getScenario()); printer.print(toPrint.getExecutionIndex()); printer.print(toPrint.getDecisionOrRuleName()); printer.print(toPrint.getResult()); printer.print(toPrint.getMessage().orElse("")); printer.println(); }
ScenarioCsvDownloadReport { protected void printAuditLogLine(AuditLogLine toPrint, CSVPrinter printer) throws IOException { printer.print(toPrint.getScenarioIndex()); printer.print(toPrint.getScenario()); printer.print(toPrint.getExecutionIndex()); printer.print(toPrint.getDecisionOrRuleName()); printer.print(toPrint.getResult()); printer.print(toPrint.getMessage().orElse("")); printer.println(); } }
ScenarioCsvDownloadReport { protected void printAuditLogLine(AuditLogLine toPrint, CSVPrinter printer) throws IOException { printer.print(toPrint.getScenarioIndex()); printer.print(toPrint.getScenario()); printer.print(toPrint.getExecutionIndex()); printer.print(toPrint.getDecisionOrRuleName()); printer.print(toPrint.getResult()); printer.print(toPrint.getMessage().orElse("")); printer.println(); }  }
ScenarioCsvDownloadReport { protected void printAuditLogLine(AuditLogLine toPrint, CSVPrinter printer) throws IOException { printer.print(toPrint.getScenarioIndex()); printer.print(toPrint.getScenario()); printer.print(toPrint.getExecutionIndex()); printer.print(toPrint.getDecisionOrRuleName()); printer.print(toPrint.getResult()); printer.print(toPrint.getMessage().orElse("")); printer.println(); }  String getReport(SimulationRunMetadata simulationRunMetadata, ScenarioSimulationModel.Type modelType); }
ScenarioCsvDownloadReport { protected void printAuditLogLine(AuditLogLine toPrint, CSVPrinter printer) throws IOException { printer.print(toPrint.getScenarioIndex()); printer.print(toPrint.getScenario()); printer.print(toPrint.getExecutionIndex()); printer.print(toPrint.getDecisionOrRuleName()); printer.print(toPrint.getResult()); printer.print(toPrint.getMessage().orElse("")); printer.println(); }  String getReport(SimulationRunMetadata simulationRunMetadata, ScenarioSimulationModel.Type modelType);  }