From e71fee8ded56370b90650ed7a88941c5b21ada5a Mon Sep 17 00:00:00 2001 From: Manuel Soulier Date: Wed, 27 Sep 2023 17:55:55 +0200 Subject: [PATCH] Merge branch 'master' of https://github.com/InseeFr/ARC.git --- .../fr/insee/arc/core/businesstest/TestsFonctionnels.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arc-core/src/test/java/fr/insee/arc/core/businesstest/TestsFonctionnels.java b/arc-core/src/test/java/fr/insee/arc/core/businesstest/TestsFonctionnels.java index f532e10f8..965eade72 100644 --- a/arc-core/src/test/java/fr/insee/arc/core/businesstest/TestsFonctionnels.java +++ b/arc-core/src/test/java/fr/insee/arc/core/businesstest/TestsFonctionnels.java @@ -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; @@ -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()); @@ -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()); @@ -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());