File tree Expand file tree Collapse file tree 5 files changed +28
-2
lines changed
core/src/test/java/it/pagopa/selfcare/mscore/core
main/java/it/pagopa/selfcare/mscore/web/model/institution
test/java/it/pagopa/selfcare/mscore/web Expand file tree Collapse file tree 5 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 36103610 "address" : {
36113611 "type" : " string"
36123612 },
3613+ "businessRegisterPlace" : {
3614+ "type" : " string"
3615+ },
36133616 "description" : {
36143617 "type" : " string"
36153618 },
36313634 "parentDescription" : {
36323635 "type" : " string"
36333636 },
3637+ "rea" : {
3638+ "type" : " string"
3639+ },
3640+ "shareCapital" : {
3641+ "type" : " string"
3642+ },
36343643 "zipCode" : {
36353644 "type" : " string"
36363645 }
Original file line number Diff line number Diff line change @@ -1288,7 +1288,10 @@ Feature: Institution
12881288 "vatNumber":"Updated vatNumber",
12891289 "productId" : "prod-io"
12901290 }
1291- ]
1291+ ],
1292+ "rea": "AA-00000",
1293+ "shareCapital": "9999",
1294+ "businessRegisterPlace": "registerPlace"
12921295 }
12931296 """
12941297 When I send a PUT request to "/institutions/{id}"
@@ -1303,6 +1306,9 @@ Feature: Institution
13031306 | address | Updated address |
13041307 | zipCode | Updated zipCode |
13051308 | onboarding [0 ].billing .vatNumber | Updated vatNumber |
1309+ | rea | AA -00000 |
1310+ | shareCapital | 9999 |
1311+ | businessRegisterPlace | registerPlace |
13061312
13071313 @RemoveMockInstitutionAfterScenario
13081314 Scenario : Successfully update institution description and delegation updatedAt
Original file line number Diff line number Diff line change @@ -936,6 +936,9 @@ void testUpdateInstitution() {
936936 updatedInstitution .setAddress ("newAddress" );
937937 updatedInstitution .setZipCode ("newZipCode" );
938938 updatedInstitution .setOnboarding (List .of (onboarding ));
939+ updatedInstitution .setRea ("AA-00000" );
940+ updatedInstitution .setShareCapital ("9999" );
941+ updatedInstitution .setBusinessRegisterPlace ("registerPlace" );
939942
940943 InstitutionUpdate institutionUpdate = new InstitutionUpdate ();
941944 institutionUpdate .setDescription ("newDesc" );
@@ -944,6 +947,9 @@ void testUpdateInstitution() {
944947 institutionUpdate .setAddress ("newAddress" );
945948 institutionUpdate .setZipCode ("newZipCode" );
946949 institutionUpdate .setOnboardings (List .of (onboarding ));
950+ institutionUpdate .setRea ("AA-00000" );
951+ institutionUpdate .setShareCapital ("9999" );
952+ institutionUpdate .setBusinessRegisterPlace ("registerPlace" );
947953
948954 //when
949955 when (institutionConnector .findById (institutionId )).thenReturn (new Institution ());
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ public class InstitutionPut {
1616 private String parentDescription ;
1717 private String address ;
1818 private String zipCode ;
19-
19+ private String rea ;
20+ private String shareCapital ;
21+ private String businessRegisterPlace ;
2022 @ Valid
2123 private List <OnboardingPut > onboardings ;
2224}
Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ public static InstitutionPut createSimpleInstitutionPut() {
179179 institutionPut .setOnboardings (List .of (onboardingPut ));
180180 institutionPut .setAddress ("address" );
181181 institutionPut .setZipCode ("zipCode" );
182+ institutionPut .setRea ("AA-00000" );
183+ institutionPut .setShareCapital ("9999" );
184+ institutionPut .setBusinessRegisterPlace ("registerPlace" );
182185 return institutionPut ;
183186 }
184187
You can’t perform that action at this time.
0 commit comments