Exporters { public static DataSource createDataSource(Path directory, String fileNameOrBaseName, DataSourceObserver observer) { return DataSourceUtil.createDataSource(directory, fileNameOrBaseName, observer); } private  Exporters(); static Collection<String> getFormats(ExportersLoader loader); static Collection<String> getFormats(); static Exporter getExporter(ExportersLoader loader, String format); static Exporter getExporter(String format); static DataSource createDataSource(Path directory, String fileNameOrBaseName, DataSourceObserver observer); static DataSource createDataSource(Path file, DataSourceObserver observer); static DataSource createDataSource(Path file); static void export(ExportersLoader loader, String format, Network network, Properties parameters, DataSource dataSource); static void export(String format, Network network, Properties parameters, DataSource dataSource); static void export(ExportersLoader loader, String format, Network network, Properties parameters, Path file); static void export(String format, Network network, Properties parameters, Path file); static void export(ExportersLoader loader, String format, Network network, Properties parameters, String directory, String baseName); static void export(String format, Network network, Properties parameters, String directory, String baseName);  }
@Test public void createDataSource1() throws IOException { Files.createFile(fileSystem.getPath(WORK_FOO_TST)); DataSource dataSource = Exporters.createDataSource(fileSystem.getPath("/work/"), "foo", null); assertTrue(dataSource.exists(FOO_TST)); }
@Test public void createDataSource2() throws IOException { Files.createFile(fileSystem.getPath(WORK_FOO_TST)); DataSource dataSource = Exporters.createDataSource(path, null); assertTrue(dataSource.exists(FOO_TST)); }
@Test public void createDataSource3() throws IOException { Files.createFile(fileSystem.getPath(WORK_FOO_TST)); DataSource dataSource = Exporters.createDataSource(path); assertTrue(dataSource.exists(FOO_TST)); }