Skip to content

Commit

Permalink
fix: wrong boolean ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Dec 4, 2023
1 parent 2bf87bd commit 0de2540
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
import org.junit.Test;

import fr.insee.arc.core.dataobjects.ArcPreparedStatementBuilder;
import fr.insee.arc.utils.dao.SQL;
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.ws.services.importServlet.actions.SendResponse;
import fr.insee.arc.ws.services.importServlet.bo.ExportTrackingType;
import fr.insee.arc.ws.services.importServlet.dao.InitializeTestDataNoScalability;

public class ImportStep1KoTest extends ServletArc {
public class ImportKOTest extends ServletArc {

private static final long serialVersionUID = 4409305598494746785L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,18 @@
import org.junit.BeforeClass;
import org.junit.Test;

import fr.insee.arc.core.dataobjects.ArcPreparedStatementBuilder;
import fr.insee.arc.utils.dao.SQL;
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.ws.services.importServlet.actions.SendResponse;
import fr.insee.arc.ws.services.importServlet.dao.InitializeTestDataNoScalability;

public class ImportStep1OkTest extends ServletArc {
public class ImportOKTest extends ServletArc {

private static final long serialVersionUID = -7832574224892526397L;


@BeforeClass
public static void setup() throws SQLException, ArcException {

InitializeTestDataNoScalability.destroyTestData();
InitializeTestDataNoScalability.initializeTestData(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public class InitializeTestDataNoScalability {
*/
public static void initializeTestData(boolean ok) throws SQLException, ArcException {

InitializeQueryTest.buildPropertiesWithoutScalability(null);

ArcPreparedStatementBuilder query;
query = new ArcPreparedStatementBuilder();
query.append("CREATE SCHEMA arc;");
Expand All @@ -43,7 +41,7 @@ public static void initializeTestData(boolean ok) throws SQLException, ArcExcept
query.append(SQL.END_QUERY);


if (!ok)
if (ok)
{
query.append("CREATE TABLE arc_bas1.mod_variable_metier AS SELECT 'DSN' as id_famille, 'mapping_dsn_test1_ok' as nom_table_metier, 'id_source' as nom_variable_metier");
query.append(SQL.END_QUERY);
Expand Down Expand Up @@ -94,8 +92,9 @@ public static void initializeTestData(boolean ok) throws SQLException, ArcExcept
*/
public static void destroyTestData() throws SQLException, ArcException {

ArcPreparedStatementBuilder query;
InitializeQueryTest.buildPropertiesWithoutScalability(null);

ArcPreparedStatementBuilder query;
query = new ArcPreparedStatementBuilder();

query.append("DROP SCHEMA IF EXISTS arc CASCADE;");
Expand Down

0 comments on commit 0de2540

Please sign in to comment.