From 3066946e328968370f903dd506242a376e4c0c9d Mon Sep 17 00:00:00 2001 From: Betty Becuwe <77614323+BettyB979@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:28:11 +0200 Subject: [PATCH] tests: refactor --- .../{query => integration}/CucumberTest.java | 4 ++-- .../{query => integration}/QuestioningInformationsSteps.java | 2 +- .../{query => integration}/SearchContactSteps.java | 2 +- .../{query => integration}/SearchSurveyUnitSteps.java | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) rename src/test/java/fr/insee/survey/datacollectionmanagement/{query => integration}/CucumberTest.java (90%) rename src/test/java/fr/insee/survey/datacollectionmanagement/{query => integration}/QuestioningInformationsSteps.java (99%) rename src/test/java/fr/insee/survey/datacollectionmanagement/{query => integration}/SearchContactSteps.java (99%) rename src/test/java/fr/insee/survey/datacollectionmanagement/{query => integration}/SearchSurveyUnitSteps.java (97%) diff --git a/src/test/java/fr/insee/survey/datacollectionmanagement/query/CucumberTest.java b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/CucumberTest.java similarity index 90% rename from src/test/java/fr/insee/survey/datacollectionmanagement/query/CucumberTest.java rename to src/test/java/fr/insee/survey/datacollectionmanagement/integration/CucumberTest.java index d6f38747..24bb8198 100644 --- a/src/test/java/fr/insee/survey/datacollectionmanagement/query/CucumberTest.java +++ b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/CucumberTest.java @@ -1,4 +1,4 @@ -package fr.insee.survey.datacollectionmanagement.query; +package fr.insee.survey.datacollectionmanagement.integration; import io.cucumber.spring.CucumberContextConfiguration; import org.junit.platform.suite.api.ConfigurationParameter; @@ -19,7 +19,7 @@ @Suite @IncludeEngines("cucumber") @SelectClasspathResource("/integration/query") -@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "fr.insee.survey.datacollectionmanagement.query") +@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "fr.insee.survey.datacollectionmanagement.integration") @ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty, json:target/cucumber.json, html:target/cucumber_report.html," + " usage:target/usage.jsonx, junit:target/junit.xml") public class CucumberTest { diff --git a/src/test/java/fr/insee/survey/datacollectionmanagement/query/QuestioningInformationsSteps.java b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/QuestioningInformationsSteps.java similarity index 99% rename from src/test/java/fr/insee/survey/datacollectionmanagement/query/QuestioningInformationsSteps.java rename to src/test/java/fr/insee/survey/datacollectionmanagement/integration/QuestioningInformationsSteps.java index 2f7420ba..95dc9a6d 100644 --- a/src/test/java/fr/insee/survey/datacollectionmanagement/query/QuestioningInformationsSteps.java +++ b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/QuestioningInformationsSteps.java @@ -1,4 +1,4 @@ -package fr.insee.survey.datacollectionmanagement.query; +package fr.insee.survey.datacollectionmanagement.integration; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import fr.insee.survey.datacollectionmanagement.config.AuthenticationUserProvider; diff --git a/src/test/java/fr/insee/survey/datacollectionmanagement/query/SearchContactSteps.java b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/SearchContactSteps.java similarity index 99% rename from src/test/java/fr/insee/survey/datacollectionmanagement/query/SearchContactSteps.java rename to src/test/java/fr/insee/survey/datacollectionmanagement/integration/SearchContactSteps.java index c766041b..c6a163c2 100644 --- a/src/test/java/fr/insee/survey/datacollectionmanagement/query/SearchContactSteps.java +++ b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/SearchContactSteps.java @@ -1,4 +1,4 @@ -package fr.insee.survey.datacollectionmanagement.query; +package fr.insee.survey.datacollectionmanagement.integration; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/src/test/java/fr/insee/survey/datacollectionmanagement/query/SearchSurveyUnitSteps.java b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/SearchSurveyUnitSteps.java similarity index 97% rename from src/test/java/fr/insee/survey/datacollectionmanagement/query/SearchSurveyUnitSteps.java rename to src/test/java/fr/insee/survey/datacollectionmanagement/integration/SearchSurveyUnitSteps.java index a2484c4a..9a045e3f 100644 --- a/src/test/java/fr/insee/survey/datacollectionmanagement/query/SearchSurveyUnitSteps.java +++ b/src/test/java/fr/insee/survey/datacollectionmanagement/integration/SearchSurveyUnitSteps.java @@ -1,4 +1,4 @@ -package fr.insee.survey.datacollectionmanagement.query; +package fr.insee.survey.datacollectionmanagement.integration; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; @@ -6,7 +6,6 @@ import fr.insee.survey.datacollectionmanagement.config.auth.user.AuthorityRoleEnum; import fr.insee.survey.datacollectionmanagement.constants.Constants; import fr.insee.survey.datacollectionmanagement.questioning.domain.SurveyUnit; -import fr.insee.survey.datacollectionmanagement.questioning.dto.SearchSurveyUnitDto; import fr.insee.survey.datacollectionmanagement.questioning.dto.SearchSurveyUnitDtoImpl; import fr.insee.survey.datacollectionmanagement.questioning.repository.SurveyUnitRepository; import fr.insee.survey.datacollectionmanagement.questioning.util.SurveyUnitParamEnum;