11package cucumber .functional_tests ;
22
3- import com .fasterxml .jackson .databind .ObjectMapper ;
43import cucumber .TestConstants ;
54import fr .insee .bpm .exceptions .MetadataParserException ;
65import fr .insee .bpm .metadata .model .VariablesMap ;
@@ -328,12 +327,11 @@ public void check_external_variable_content_in_mongo(
328327 }
329328
330329 @ Then ("If we get latest states for {string} in collected variable {string}, survey unit {string} we should have {string} for iteration {int}" )
331- public void check_latest_state_collected (String questionnaireId , String variableName , String interrogationId , String expectedValue , int iteration ) throws GenesisException , IOException {
330+ public void check_latest_state_collected (String questionnaireId , String variableName , String interrogationId , String expectedValue , int iteration ) throws GenesisException {
332331 ResponseEntity <Object > response =
333332 responseController .findResponsesByInterrogationAndQuestionnaireLatestStates (interrogationId , questionnaireId );
334333 Assertions .assertThat (response .getStatusCode ().value ()).isEqualTo (200 );
335334
336- ObjectMapper objectMapper = new ObjectMapper ().findAndRegisterModules ();
337335 SurveyUnitQualityToolDto surveyUnitQualityToolDto = (SurveyUnitQualityToolDto ) response .getBody ();
338336
339337 List <VariableQualityToolDto > variableQualityToolDtos = surveyUnitQualityToolDto .getCollectedVariables ().stream ().filter (
@@ -353,7 +351,7 @@ public void check_latest_state_collected(String questionnaireId, String variable
353351 }
354352
355353 @ Then ("If we get latest states for {string} in external variable {string}, survey unit {string} we should have {string} for iteration {int}" )
356- public void check_latest_state_external (String questionnaireId , String variableName , String interrogationId , String expectedValue , int iteration ) throws IOException , GenesisException {
354+ public void check_latest_state_external (String questionnaireId , String variableName , String interrogationId , String expectedValue , int iteration ) throws GenesisException {
357355 ResponseEntity <Object > response =
358356 responseController .findResponsesByInterrogationAndQuestionnaireLatestStates (interrogationId , questionnaireId );
359357 Assertions .assertThat (response .getStatusCode ().value ()).isEqualTo (200 );
@@ -435,7 +433,7 @@ public void check_su_latest_states_collected_variables_volumetry(String interrog
435433 @ Then ("The extracted survey unit latest states response should have a survey unit DTO has interrogationId " +
436434 "{string}" +
437435 " with {int} external variables" )
438- public void check_su_latest_states_external_variables_volumetry (String interrogationId , int expectedVolumetry ) throws IOException {
436+ public void check_su_latest_states_external_variables_volumetry (String interrogationId , int expectedVolumetry ) {
439437 Assertions .assertThat (surveyUnitLatestStatesResponse ).isNotNull ();
440438 Assertions .assertThat (surveyUnitLatestStatesResponse .getBody ()).isNotNull ();
441439 SurveyUnitQualityToolDto surveyUnitQualityToolDto = (SurveyUnitQualityToolDto ) surveyUnitLatestStatesResponse .getBody ();
0 commit comments