@Test public void getNullExporter() { Exporter exporter = Exporters.getExporter(loader, UNSUPPORTED_FORMAT); assertNull(exporter); }
public static Exporter getExporter(ExportersLoader loader, String format) { Objects.requireNonNull(format); Objects.requireNonNull(loader); for (Exporter e : loader.loadExporters()) { if (format.equals(e.getFormat())) { return e; } } return null; }
Exporters { public static Exporter getExporter(ExportersLoader loader, String format) { Objects.requireNonNull(format); Objects.requireNonNull(loader); for (Exporter e : loader.loadExporters()) { if (format.equals(e.getFormat())) { return e; } } return null; } }
Exporters { public static Exporter getExporter(ExportersLoader loader, String format) { Objects.requireNonNull(format); Objects.requireNonNull(loader); for (Exporter e : loader.loadExporters()) { if (format.equals(e.getFormat())) { return e; } } return null; } private  Exporters(); }
Exporters { public static Exporter getExporter(ExportersLoader loader, String format) { Objects.requireNonNull(format); Objects.requireNonNull(loader); for (Exporter e : loader.loadExporters()) { if (format.equals(e.getFormat())) { return e; } } return null; } 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); }
Exporters { public static Exporter getExporter(ExportersLoader loader, String format) { Objects.requireNonNull(format); Objects.requireNonNull(loader); for (Exporter e : loader.loadExporters()) { if (format.equals(e.getFormat())) { return e; } } return null; } 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);  }