Skip to content

Commit

Permalink
fix: removed test from clientDao
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Dec 4, 2023
1 parent 26f5c62 commit 35633e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 341 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ private void testCreateTableTablePeriodicite() throws ArcException {
private static void initializeTestData() throws SQLException, ArcException {

ArcPreparedStatementBuilder query;

query = new ArcPreparedStatementBuilder();

query.append("CREATE SCHEMA arc;");
Expand All @@ -136,15 +135,17 @@ private static void initializeTestData() throws SQLException, ArcException {

// family and client tables
query.append("CREATE TABLE arc.ihm_client AS ");
query.append("SELECT 'DSN' as id_famille,'ARTEMIS' as id_application UNION ALL ");
query.append("SELECT 'DSN' as id_famille,'ARTEMIS' as id_application");
query.append(SQL.UNION_ALL);
query.append("SELECT 'DSN' as id_famille,'DSNFLASH' as id_application");
query.append(SQL.END_QUERY);

query.append("CREATE TABLE arc.ihm_famille AS SELECT 'DSN' as id_famille");
query.append(SQL.END_QUERY);

query.append("CREATE TABLE arc_bas1.mod_table_metier AS ");
query.append("SELECT 'DSN' as id_famille,'mapping_dsn_test1_ok' as nom_table_metier UNION ALL ");
query.append("SELECT 'DSN' as id_famille,'mapping_dsn_test1_ok' as nom_table_metier");
query.append(SQL.UNION_ALL);
query.append("SELECT 'PASRAU' as id_famille,'mapping_pasrau_test_ok' as nom_table_metier");
query.append(SQL.END_QUERY);

Expand All @@ -156,7 +157,7 @@ private static void initializeTestData() throws SQLException, ArcException {
query.append("SELECT 'file_to_retrieve.xml' as id_source, 'PHASE3V1' as id_norme, '2023-10-01' as validite,'M' as periodicite");
query.append(", 'MAPPING' as phase_traitement, '{OK}'::text[] as etat_traitement, '2023-11-30 10:29:47.000'::timestamp as date_traitement");
query.append(", null::text[] as client, null::timestamp[] as date_client");
query.append(" UNION ALL ");
query.append(SQL.UNION_ALL);
// file that mustn't be retrieved when reprise is false and family is DSN
query.append("SELECT 'file_not_to_retrieve_when_reprise_false.xml' as id_source, 'PHASE3V1' as id_norme, '2023-10-01' as validite,'M' as periodicite");
query.append(", 'MAPPING' as phase_traitement, '{OK}'::text[] as etat_traitement, '2023-11-30 10:29:47.000'::timestamp as date_traitement");
Expand Down

This file was deleted.

0 comments on commit 35633e0

Please sign in to comment.