diff --git a/src/test/java/org/gridsuite/explore/server/SupervisionTest.java b/src/test/java/org/gridsuite/explore/server/SupervisionTest.java index 6d42727..189ab41 100644 --- a/src/test/java/org/gridsuite/explore/server/SupervisionTest.java +++ b/src/test/java/org/gridsuite/explore/server/SupervisionTest.java @@ -12,7 +12,6 @@ import org.springframework.http.HttpMethod; import org.springframework.web.client.RestTemplate; - import java.util.List; import java.util.UUID; @@ -32,7 +31,6 @@ public class SupervisionTest { @MockBean RestTemplate restTemplate; - ElementAttributes filter = new ElementAttributes(UUID.randomUUID(), "filter", "FILTER", null, "userId", 0L, null, null); ElementAttributes study = new ElementAttributes(UUID.randomUUID(), "study", "STUDY", null, "userId", 0L, null, null); @@ -52,7 +50,7 @@ void testDeleteElements() { void testDeleteElementsWithErrors() { List uuidsToDelete = List.of(filter.getElementUuid(), study.getElementUuid()); - // one deletion will fail, this test checks deletions does not stop even when one of them is throwing an exception + // one deletion will fail, this test checks deletions does not stop even when one of them is throwing an exception doThrow(new RuntimeException("An error occured when deleting filter")).when(directoryService).deleteElement(filter.getElementUuid(), "userId"); supervisionService.deleteElements(uuidsToDelete, "userId");