Skip to content

Commit

Permalink
fix: checkstyle
Browse files Browse the repository at this point in the history
Signed-off-by: LE SAULNIER Kevin <[email protected]>
  • Loading branch information
LE SAULNIER Kevin committed Apr 16, 2024
1 parent ee13aac commit bddf5df
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.springframework.http.HttpMethod;
import org.springframework.web.client.RestTemplate;


import java.util.List;
import java.util.UUID;

Expand All @@ -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);
Expand All @@ -52,7 +50,7 @@ void testDeleteElements() {
void testDeleteElementsWithErrors() {
List<UUID> 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");
Expand Down

0 comments on commit bddf5df

Please sign in to comment.