@@ -191,15 +191,15 @@ public void delete_directory() throws IOException {
191191
192192 @ When ("We extract survey unit data with questionnaireId {string} and interrogationId {string}" )
193193 public void extract_survey_data (String questionnaireId , String interrogationId ) {
194- this .surveyUnitModelResponse = responseController .getLatestByInterrogation (interrogationId , questionnaireId );
194+ this .surveyUnitModelResponse = responseController .getLatestByInterrogation (interrogationId , questionnaireId . toUpperCase () );
195195 }
196196
197197 @ When ("We extract survey unit latest states with questionnaireId {string} and interrogationId {string}" )
198198 public void extract_survey_unit_latest_states (String questionnaireId , String interrogationId ){
199199 try {
200200 this .surveyUnitLatestStatesResponse =
201201 responseController .findResponsesByInterrogationAndQuestionnaireLatestStates (interrogationId ,
202- questionnaireId );
202+ questionnaireId . toUpperCase () );
203203 } catch (GenesisException e ) {
204204 this .surveyUnitLatestStatesResponse = ResponseEntity .status (e .getStatus ()).body (new ApiError (e .getMessage ()));
205205 }
@@ -329,7 +329,7 @@ public void check_external_variable_content_in_mongo(
329329 @ Then ("If we get latest states for {string} in collected variable {string}, survey unit {string} we should have {string} for iteration {int}" )
330330 public void check_latest_state_collected (String questionnaireId , String variableName , String interrogationId , String expectedValue , int iteration ) throws GenesisException {
331331 ResponseEntity <Object > response =
332- responseController .findResponsesByInterrogationAndQuestionnaireLatestStates (interrogationId , questionnaireId );
332+ responseController .findResponsesByInterrogationAndQuestionnaireLatestStates (interrogationId , questionnaireId . toUpperCase () );
333333 Assertions .assertThat (response .getStatusCode ().value ()).isEqualTo (200 );
334334
335335 SurveyUnitQualityToolDto surveyUnitQualityToolDto = (SurveyUnitQualityToolDto ) response .getBody ();
@@ -353,7 +353,7 @@ public void check_latest_state_collected(String questionnaireId, String variable
353353 @ Then ("If we get latest states for {string} in external variable {string}, survey unit {string} we should have {string} for iteration {int}" )
354354 public void check_latest_state_external (String questionnaireId , String variableName , String interrogationId , String expectedValue , int iteration ) throws GenesisException {
355355 ResponseEntity <Object > response =
356- responseController .findResponsesByInterrogationAndQuestionnaireLatestStates (interrogationId , questionnaireId );
356+ responseController .findResponsesByInterrogationAndQuestionnaireLatestStates (interrogationId , questionnaireId . toUpperCase () );
357357 Assertions .assertThat (response .getStatusCode ().value ()).isEqualTo (200 );
358358 SurveyUnitQualityToolDto surveyUnitQualityToolDto = (SurveyUnitQualityToolDto ) response .getBody ();
359359
0 commit comments