OftRunner implements Oft { @Override public void reportToPath(final Trace trace, final Path outputPath) { final ReportSettings settings = ReportSettings.createDefault(); serviceFactory.createReportService(settings).reportTraceToPath(trace, outputPath, settings.getOutputFormat()); } OftRunner();   OftRunner(ServiceFactory serviceFactory); @Override List<SpecificationItem> importItems(final ImportSettings settings); @Override List<SpecificationItem> importItems(); @Override List<LinkedSpecificationItem> link(final List<SpecificationItem> items); @Override Trace trace(final List<LinkedSpecificationItem> linkedItems); @Override void exportToPath(final List<SpecificationItem> items, final Path path); @Override void exportToPath(final List<SpecificationItem> items, final Path path,
            final ExportSettings settings); @Override void reportToStdOut(final Trace trace); @Override void reportToStdOut(final Trace trace, final ReportSettings settings); @Override void reportToPath(final Trace trace, final Path outputPath); @Override void reportToPath(final Trace trace, final Path outputPath,
            final ReportSettings settings);  }
@Test void testReportToPathTracePath() { oftRunner.reportToPath(traceMock, PATH); verify(reportServiceMock).reportTraceToPath(same(traceMock), same(PATH), eq("plain")); }
@Test void testReportToPathTracePathReportSettings() { final ReportSettings settings = ReportSettings.builder().outputFormat("myFormat").build(); oftRunner.reportToPath(traceMock, PATH, settings); verify(reportServiceMock).reportTraceToPath(same(traceMock), same(PATH), eq("myFormat")); }