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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user