OftRunner implements Oft { @Override public void reportToStdOut(final Trace trace) { final ReportSettings settings = ReportSettings.createDefault(); serviceFactory.createReportService(settings).reportTraceToStdOut(trace, 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 testReportToStdOutTrace() { oftRunner.reportToStdOut(traceMock); verify(reportServiceMock).reportTraceToStdOut(same(traceMock), eq("plain")); }
@Test void testReportToStdOutTraceReportSettings() { final ReportSettings settings = ReportSettings.builder().outputFormat("myFormat") .newline(Newline.OLDMAC).build(); oftRunner.reportToStdOut(traceMock, settings); verify(reportServiceMock).reportTraceToStdOut(same(traceMock), eq("myFormat")); }