@Test(expected = PowsyblException.class) public void testExportersWithWrongFormat() { SensitivityAnalysisResultExporters.export(Mockito.mock(SensitivityAnalysisResult.class), Mockito.mock(Writer.class), "XML"); }
public static void export(SensitivityAnalysisResult result, Path path, String format) { Objects.requireNonNull(path); try (Writer writer = Files.newBufferedWriter(path)) { export(result, writer, format); } catch (IOException e) { throw new UncheckedIOException(e); } }
SensitivityAnalysisResultExporters { public static void export(SensitivityAnalysisResult result, Path path, String format) { Objects.requireNonNull(path); try (Writer writer = Files.newBufferedWriter(path)) { export(result, writer, format); } catch (IOException e) { throw new UncheckedIOException(e); } } }
SensitivityAnalysisResultExporters { public static void export(SensitivityAnalysisResult result, Path path, String format) { Objects.requireNonNull(path); try (Writer writer = Files.newBufferedWriter(path)) { export(result, writer, format); } catch (IOException e) { throw new UncheckedIOException(e); } } private  SensitivityAnalysisResultExporters(); }
SensitivityAnalysisResultExporters { public static void export(SensitivityAnalysisResult result, Path path, String format) { Objects.requireNonNull(path); try (Writer writer = Files.newBufferedWriter(path)) { export(result, writer, format); } catch (IOException e) { throw new UncheckedIOException(e); } } private  SensitivityAnalysisResultExporters(); static Collection<String> getFormats(); static SensitivityAnalysisResultExporter getExporter(String format); static void export(SensitivityAnalysisResult result, Path path, String format); static void export(SensitivityAnalysisResult result, Writer writer, String format); }
SensitivityAnalysisResultExporters { public static void export(SensitivityAnalysisResult result, Path path, String format) { Objects.requireNonNull(path); try (Writer writer = Files.newBufferedWriter(path)) { export(result, writer, format); } catch (IOException e) { throw new UncheckedIOException(e); } } private  SensitivityAnalysisResultExporters(); static Collection<String> getFormats(); static SensitivityAnalysisResultExporter getExporter(String format); static void export(SensitivityAnalysisResult result, Path path, String format); static void export(SensitivityAnalysisResult result, Writer writer, String format);  }