diff --git a/src/test/java/uk/ac/ebi/eva/contigalias/service/ChromosomeServiceIntegrationTest.java b/src/test/java/uk/ac/ebi/eva/contigalias/service/ChromosomeServiceIntegrationTest.java index e73cda35..9bdd68c3 100644 --- a/src/test/java/uk/ac/ebi/eva/contigalias/service/ChromosomeServiceIntegrationTest.java +++ b/src/test/java/uk/ac/ebi/eva/contigalias/service/ChromosomeServiceIntegrationTest.java @@ -29,6 +29,7 @@ import uk.ac.ebi.eva.contigalias.entities.ChromosomeEntity; import uk.ac.ebi.eva.contigalias.entitygenerator.AssemblyGenerator; import uk.ac.ebi.eva.contigalias.entitygenerator.ChromosomeGenerator; +import uk.ac.ebi.eva.contigalias.repo.ChromosomeRepository; import java.util.Collections; import java.util.List; @@ -47,14 +48,18 @@ public class ChromosomeServiceIntegrationTest { @Autowired private ChromosomeService service; + @Autowired + private ChromosomeRepository chromosomeRepository; + @BeforeEach void setup() { + chromosomeRepository.deleteAll(); service.insertChromosome(entity); } @AfterEach void tearDown() { - service.deleteChromosome(entity); + chromosomeRepository.deleteAll(); } @Test