@Test public void should_read_generated_report() throws IOException { Path reportDirectory = temporaryFolder.newFolder().toPath(); String reportName = "1.txt"; Files.write(reportDirectory.resolve(reportName), "test".getBytes()); PerformanceService performanceService = new PerformanceService(ingestClientFactory, adminClientFactory, null, reportDirectory, UserInterfaceTransactionManager.getInstance()); InputStream inputStream = performanceService.readReport(reportName); assertThat(inputStream).hasSameContentAs(new ByteArrayInputStream("test".getBytes())); }
InputStream readReport(String reportName) throws IOException { return Files.newInputStream(performanceReportDirectory.resolve(reportName)); }
PerformanceService { InputStream readReport(String reportName) throws IOException { return Files.newInputStream(performanceReportDirectory.resolve(reportName)); } }
PerformanceService { InputStream readReport(String reportName) throws IOException { return Files.newInputStream(performanceReportDirectory.resolve(reportName)); } PerformanceService(Path sipDirectory, Path performanceReportDirectory);   PerformanceService(IngestExternalClientFactory ingestClientFactory,
        AdminExternalClientFactory adminClientFactory, Path sipDirectory,
        Path performanceReportDirectory, UserInterfaceTransactionManager userInterfaceTransactionManager); }
PerformanceService { InputStream readReport(String reportName) throws IOException { return Files.newInputStream(performanceReportDirectory.resolve(reportName)); } PerformanceService(Path sipDirectory, Path performanceReportDirectory);   PerformanceService(IngestExternalClientFactory ingestClientFactory,
        AdminExternalClientFactory adminClientFactory, Path sipDirectory,
        Path performanceReportDirectory, UserInterfaceTransactionManager userInterfaceTransactionManager);  }
PerformanceService { InputStream readReport(String reportName) throws IOException { return Files.newInputStream(performanceReportDirectory.resolve(reportName)); } PerformanceService(Path sipDirectory, Path performanceReportDirectory);   PerformanceService(IngestExternalClientFactory ingestClientFactory,
        AdminExternalClientFactory adminClientFactory, Path sipDirectory,
        Path performanceReportDirectory, UserInterfaceTransactionManager userInterfaceTransactionManager);   }