Skip to content

Commit

Permalink
feat: clientDao test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Dec 1, 2023
1 parent 529a5be commit 1c1fff0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ public List<String> 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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 1c1fff0

Please sign in to comment.