test: corriger constructeurs OrganisationSummaryResponse 10→12 args (ville+pays)

3 fichiers de test utilisaient l'ancien constructeur à 10 arguments.
Ajout de null, null pour ville et pays dans tous les appels.
This commit is contained in:
dahoud
2026-04-16 14:07:28 +00:00
parent 51bb996eef
commit 4a1ca88517
3 changed files with 10 additions and 10 deletions

View File

@@ -123,7 +123,7 @@ class OrganisationResourceMissingBranchesTest {
when(organisationService.listerOrganisationsPourUtilisateur("orgadmin@test.com"))
.thenReturn(List.of(org1, org2, org3));
when(organisationService.convertToSummaryResponse(any(Organisation.class)))
.thenReturn(new OrganisationSummaryResponse(null, null, null, null, null, null, null, null, null, null));
.thenReturn(new OrganisationSummaryResponse(null, null, null, null, null, null, null, null, null, null, null, null));
// recherche = "test" → filtre les organisations dont nom ou nomCourt contient "test"
PagedResponse<OrganisationSummaryResponse> result = organisationResource.listerOrganisations(