Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/InseeFr/ARC.git
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Sep 27, 2023
1 parent b866a8f commit e71fee8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import fr.insee.arc.core.service.engine.initialisation.BddPatcherTest;
import fr.insee.arc.core.service.global.ApiService;
import fr.insee.arc.core.service.p1reception.ApiReceptionService;
import fr.insee.arc.core.service.p1reception.provider.DirectoryPath;
import fr.insee.arc.utils.dao.SQL;
import fr.insee.arc.utils.dao.UtilitaireDao;
import fr.insee.arc.utils.exception.ArcException;
Expand Down Expand Up @@ -71,7 +72,7 @@ private void executeTestSirene(String sandbox, String repertoire) throws IOExcep
10000000, null
).invokeApi();

String repertoireDeDepot = ApiReceptionService.directoryReceptionEntrepot(repertoire, sandbox, "DEFAULT");
String repertoireDeDepot = DirectoryPath.directoryReceptionEntrepot(repertoire, sandbox, "DEFAULT");

Files.copy(this.getClass().getClassLoader().getResourceAsStream("testFiles/Cas_test_V2008.11.zip"), new File(repertoireDeDepot, "Cas_test_V2008.11.zip").toPath());
Files.copy(this.getClass().getClassLoader().getResourceAsStream("testFiles/Cas_test_V2016.02.zip"), new File(repertoireDeDepot, "Cas_test_V2016.02.zip").toPath());
Expand Down Expand Up @@ -121,7 +122,7 @@ private void executeTestSiera(String sandbox, String repertoire) throws IOExcept
10000000, null
).invokeApi();

String repertoireDeDepot = ApiReceptionService.directoryReceptionEntrepot(repertoire, sandbox, "DEFAULT");
String repertoireDeDepot = DirectoryPath.directoryReceptionEntrepot(repertoire, sandbox, "DEFAULT");

Files.copy(this.getClass().getClassLoader().getResourceAsStream("testFiles/siera_ano.xml"), new File(repertoireDeDepot, "siera_ano.xml").toPath());

Expand Down Expand Up @@ -173,7 +174,7 @@ private void executeTestAnimal(String sandbox, String repertoire) throws IOExcep
10000000, null
).invokeApi();

String repertoireDeDepot = ApiReceptionService.directoryReceptionEntrepot(repertoire, sandbox, "DEFAULT");
String repertoireDeDepot = DirectoryPath.directoryReceptionEntrepot(repertoire, sandbox, "DEFAULT");

Files.copy(this.getClass().getClassLoader().getResourceAsStream("testFiles/animals.tar.gz"), new File(repertoireDeDepot, "animals.tar.gz").toPath());

Expand Down

0 comments on commit e71fee8

Please sign in to comment.