Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
giampieroferrara committed Jan 16, 2025
1 parent 1af6b3a commit 99f1676
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1265,9 +1265,10 @@ void onboardingAggregationImportTest_KO() {
void onboardingAggregationImportTest_OK() {
// given
OnboardingAggregationImportRequest onboardingImport = dummyOnboardingAggregationImportRequest();
OnboardingResponse response = dummyOnboardingResponse();

Mockito.when(onboardingService.onboardingAggregationImport(any(), any(), any(), any()))
.thenReturn(Uni.createFrom().item(new OnboardingResponse()));
.thenReturn(Uni.createFrom().item(response));

// when
given()
Expand Down Expand Up @@ -1301,7 +1302,7 @@ private OnboardingAggregationImportRequest dummyOnboardingAggregationImportReque
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
LocalDateTime dateTime = LocalDateTime.parse(str, formatter);
importContract.setCreatedAt(dateTime);
onboardingRequest.setOnboardingImportContract(new OnboardingImportContract());
onboardingRequest.setOnboardingImportContract(importContract);
return onboardingRequest;
}

Expand Down

0 comments on commit 99f1676

Please sign in to comment.