From 1c1fff02a9cee14524c02c42c40c29a922e338b4 Mon Sep 17 00:00:00 2001 From: Manuel Soulier Date: Fri, 1 Dec 2023 13:41:07 +0100 Subject: [PATCH] feat: clientDao test --- .../arc/ws/services/importServlet/dao/ClientDao.java | 7 +++++++ .../arc/ws/services/importServlet/dao/ClientDaoTest.java | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java index 1aeed1314..ebca0cbf9 100644 --- a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java +++ b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/dao/ClientDao.java @@ -107,6 +107,13 @@ public List selectBusinessDataTables() throws ArcException { .getColumnValues(ColumnEnum.NOM_TABLE_METIER.getColumnName()); } + /** + * register the table to be retrieved in tracking table + * @param wsTrackingType + * @param targetNod + * @param nomTable + * @throws ArcException + */ private void registerTableToBeRetrieved(ExportTrackingType wsTrackingType, ArcDatabase targetNod, String nomTable) throws ArcException { ArcPreparedStatementBuilder query = new ArcPreparedStatementBuilder(); diff --git a/arc-ws/src/test/java/fr/insee/arc/ws/services/importServlet/dao/ClientDaoTest.java b/arc-ws/src/test/java/fr/insee/arc/ws/services/importServlet/dao/ClientDaoTest.java index b76d56414..373e6905a 100644 --- a/arc-ws/src/test/java/fr/insee/arc/ws/services/importServlet/dao/ClientDaoTest.java +++ b/arc-ws/src/test/java/fr/insee/arc/ws/services/importServlet/dao/ClientDaoTest.java @@ -15,7 +15,6 @@ import fr.insee.arc.utils.dao.UtilitaireDao; import fr.insee.arc.utils.exception.ArcException; import fr.insee.arc.utils.query.InitializeQueryTest; -import fr.insee.arc.utils.ressourceUtils.PropertiesHandler; import fr.insee.arc.ws.services.importServlet.bo.ArcClientIdentifier; public class ClientDaoTest extends InitializeQueryTest { @@ -25,16 +24,18 @@ public void clientDaoTest() throws ArcException, SQLException { InitializeQueryTest.buildPropertiesWithoutScalability(null); - PropertiesHandler p = PropertiesHandler.getInstance(); - initializeTestData(); + // test family check testVerificationFamilleOK(); testVerificationFamilleKO(); + // test data tables retrieved according to query testSelectBusinessDataTables(); + +// testCreateTableOfIdSource(); -// destroyTestData(); + destroyTestData(); } private void testSelectBusinessDataTables() throws ArcException {