diff --git a/src/test/java/org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisServiceTest.java b/src/test/java/org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisServiceTest.java index 4e66b868..489d442e 100644 --- a/src/test/java/org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisServiceTest.java +++ b/src/test/java/org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisServiceTest.java @@ -16,6 +16,7 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import lombok.SneakyThrows; import org.gridsuite.sensitivityanalysis.server.ResultsSelector; import org.gridsuite.sensitivityanalysis.server.SensitivityAnalysisApplication; import org.gridsuite.sensitivityanalysis.server.dto.SensitivityAnalysisInputData; @@ -25,6 +26,7 @@ import org.hamcrest.Matchers; import org.hamcrest.collection.IsIterableContainingInOrder; import org.hamcrest.core.Every; +import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -406,4 +408,10 @@ private void testNoN(boolean specific) { assertThat(sensitivityVals, not(hasItem(500.2))); assertThat(sensitivityVals, isOrderedAccordingTo(Comparator.naturalOrder())); } + + @SneakyThrows + @After + public void tearDown() { + analysisService.deleteResults(); + } }