diff --git a/iidm/iidm-converter-api/src/test/java/com/powsybl/iidm/import_/ImportersTest.java b/iidm/iidm-converter-api/src/test/java/com/powsybl/iidm/import_/ImportersTest.java index ae6f6c509b2..890606448be 100644 --- a/iidm/iidm-converter-api/src/test/java/com/powsybl/iidm/import_/ImportersTest.java +++ b/iidm/iidm-converter-api/src/test/java/com/powsybl/iidm/import_/ImportersTest.java @@ -9,6 +9,7 @@ import com.powsybl.commons.PowsyblException; import com.powsybl.commons.TestUtil; import com.powsybl.commons.datasource.DataSource; +import com.powsybl.commons.datasource.ReadOnlyDataSource; import com.powsybl.commons.reporter.ReporterModel; import com.powsybl.computation.ComputationManager; import com.powsybl.iidm.AbstractConvertersTest; @@ -145,8 +146,8 @@ public void setPostProcessor() { } @Test - public void importData() { - Network network = Importers.importData(loader, TEST_FORMAT, null, null, computationManager, importConfigMock); + public void importData() throws IOException { + Network network = Importers.loadNetwork((ReadOnlyDataSource) null); assertNotNull(network); assertNotNull(network.getLoad("LOAD")); }