OftRunner implements Oft { @Override public void exportToPath(final List<SpecificationItem> items, final Path path) { exportToPath(items, path, ExportSettings.createDefault()); } 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 testExportToPathListOfSpecificationItemPath() { oftRunner.exportToPath(importedItems, PATH); final ArgumentCaptor<ExportSettings> arg = ArgumentCaptor.forClass(ExportSettings.class); verify(exporterServiceMock).exportToPath(any(), same(PATH), arg.capture()); assertDefaultExportSettings(arg.getValue()); }
@Test void testExportToPathListOfSpecificationItemPathExportSettings() { final ExportSettings settings = ExportSettings.createDefault(); oftRunner.exportToPath(importedItems, PATH, settings); verify(exporterServiceMock).exportToPath(any(), same(PATH), same(settings)); }