diff --git a/src/test/java/org/gridsuite/study/server/CaseTest.java b/src/test/java/org/gridsuite/study/server/CaseTest.java index 83aafef4e..99a778b3c 100644 --- a/src/test/java/org/gridsuite/study/server/CaseTest.java +++ b/src/test/java/org/gridsuite/study/server/CaseTest.java @@ -77,7 +77,7 @@ class CaseTest { private static final String STUDY_UPDATE_DESTINATION = "study.update"; @BeforeEach - void setup(final MockWebServer server) throws Exception { + void setup(final MockWebServer server) { // Ask the server for its URL. You'll need this to make HTTP requests. HttpUrl baseHttpUrl = server.url(""); String baseUrl = baseHttpUrl.toString().substring(0, baseHttpUrl.toString().length() - 1); diff --git a/src/test/java/org/gridsuite/study/server/NetworkModificationTest.java b/src/test/java/org/gridsuite/study/server/NetworkModificationTest.java index 9a1bc2c57..698815081 100644 --- a/src/test/java/org/gridsuite/study/server/NetworkModificationTest.java +++ b/src/test/java/org/gridsuite/study/server/NetworkModificationTest.java @@ -221,7 +221,7 @@ class NetworkModificationTest { private static final String ERROR_MESSAGE = "nullPointerException: unexpected null somewhere"; @BeforeEach - void setup(final MockWebServer server) throws Exception { + void setup(final MockWebServer server) { ReadOnlyDataSource dataSource = new ResourceDataSource("testCase", new ResourceSet("", TEST_FILE)); Network network = new XMLImporter().importData(dataSource, new NetworkFactoryImpl(), null); network.getVariantManager().cloneVariant(VariantManagerConstants.INITIAL_VARIANT_ID, VARIANT_ID); diff --git a/src/test/java/org/gridsuite/study/server/NetworkModificationTreeTest.java b/src/test/java/org/gridsuite/study/server/NetworkModificationTreeTest.java index 807c890af..623dea831 100644 --- a/src/test/java/org/gridsuite/study/server/NetworkModificationTreeTest.java +++ b/src/test/java/org/gridsuite/study/server/NetworkModificationTreeTest.java @@ -19,8 +19,6 @@ import com.jayway.jsonpath.spi.mapper.MappingProvider; import com.powsybl.iidm.network.Network; import com.powsybl.iidm.network.VariantManager; -import com.powsybl.loadflow.LoadFlowResult; -import com.powsybl.loadflow.LoadFlowResultImpl; import com.powsybl.network.store.client.NetworkStoreService; import lombok.SneakyThrows; import mockwebserver3.Dispatcher; @@ -184,7 +182,7 @@ class NetworkModificationTreeTest { private static final String ELEMENT_UPDATE_DESTINATION = "element.update"; @BeforeEach - void setUp(final MockWebServer server) throws Exception { + void setUp(final MockWebServer server) { Configuration.defaultConfiguration(); MockitoAnnotations.initMocks(this); objectMapper.enable(DeserializationFeature.USE_LONG_FOR_INTS); @@ -220,13 +218,6 @@ public Set