Skip to content

Commit dcb99e2

Browse files
committed
refactor: inline
1 parent d003eef commit dcb99e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/fr/insee/genesis/domain/service/rawdata/RawResponseServiceUnitTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ private void processRawResponses_given_invalid_validation_date(){
281281
private List<SurveyUnitModel> whenProcessByCollectionInstrumentIdAndInterrogationIdList() throws GenesisException {
282282
rawResponseService.processRawResponses(TestConstants.DEFAULT_COLLECTION_INSTRUMENT_ID);
283283
verify(surveyUnitService).saveSurveyUnits(surveyUnitModelsCaptor.capture());
284-
List<SurveyUnitModel> createdModels = surveyUnitModelsCaptor.getValue();
285-
return createdModels;
284+
return surveyUnitModelsCaptor.getValue();
286285
}
287286
private List<SurveyUnitModel> whenProcessRawResponsesCollectionInstrumentId() throws GenesisException {
288287
rawResponseService.processRawResponses(
@@ -291,8 +290,7 @@ private List<SurveyUnitModel> whenProcessRawResponsesCollectionInstrumentId() th
291290
new ArrayList<>()
292291
);
293292
verify(surveyUnitService).saveSurveyUnits(surveyUnitModelsCaptor.capture());
294-
List<SurveyUnitModel> createdModels = surveyUnitModelsCaptor.getValue();
295-
return createdModels;
293+
return surveyUnitModelsCaptor.getValue();
296294
}
297295

298296
//THENS

0 commit comments

Comments
 (0)