Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTSRD-2136. Update Name for a given organisation #1573

Open
wants to merge 82 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
db90255
Upgrading perftest branch to V16 and adding subnet_suffix
SabinaHMCTS Dec 11, 2023
530bf25
Update name for an organisation moving code to controller
SabinaHMCTS Feb 20, 2024
0a6934f
Update name for an organisation adding test cases
SabinaHMCTS Feb 20, 2024
c93a0f8
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
c163fbf
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
4bf43e3
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Feb 21, 2024
8743c98
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
9ab2dfa
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
379ba0b
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
f6ce243
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
df887a5
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Feb 27, 2024
570432d
Update OrganisationCreationRequestValidatorTest.java
SabinaHMCTS Feb 27, 2024
9927c5e
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS Feb 27, 2024
f6a762a
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 27, 2024
1029f2c
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 27, 2024
0afe4d2
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 29, 2024
dafd810
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 29, 2024
3cb3dbd
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 29, 2024
b8e0323
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Mar 12, 2024
76e261c
fixing review comments
SabinaHMCTS Mar 12, 2024
88e1cff
fixing review comments
SabinaHMCTS Mar 13, 2024
6edef7d
fixing review comments
SabinaHMCTS Mar 13, 2024
5e99427
fixing review comments
SabinaHMCTS Mar 13, 2024
809444f
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Mar 19, 2024
357d65f
Update name sra for an organisation adding test cases
SabinaHMCTS Mar 20, 2024
fd295ab
Update name sra for an organisation adding test cases
SabinaHMCTS Mar 20, 2024
5273b65
Merge branch 'master' into DTSRD-2136
SabinaHMCTS May 1, 2024
177e806
Merge branch 'master' into DTSRD-2136
SabinaHMCTS May 9, 2024
8dc916e
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS May 14, 2024
94b25b5
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS May 14, 2024
0ae9a03
Update OrganisationServiceImpl.java
SabinaHMCTS May 14, 2024
dbefdbb
update admin unit tests
SabinaHMCTS Jun 11, 2024
31d9f06
update admin unit tests
SabinaHMCTS Jun 11, 2024
1a96311
update functional tests
SabinaHMCTS Aug 23, 2024
ed30490
Update OrganisationServiceImpl.java
SabinaHMCTS Aug 27, 2024
1587540
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Aug 27, 2024
76a321d
Update OrganisationInternalController.java
SabinaHMCTS Aug 27, 2024
69971f4
Update OrganisationServiceImpl.java
SabinaHMCTS Aug 27, 2024
7f82f30
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS Aug 29, 2024
f6bc99b
Update UpdateOrgNameSraIdIntegrationTest.java
SabinaHMCTS Aug 29, 2024
dc30a32
Fixing build
SabinaHMCTS Sep 2, 2024
437cdd9
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 2, 2024
9279e00
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 3, 2024
2792daf
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 3, 2024
35133bf
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 3, 2024
ed57433
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 3, 2024
744e4bc
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
2c039fb
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
c0aadab
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
4965cf6
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
1ee1c6c
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
c6e634b
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
437ef4b
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
218fc52
Changes to fix review comments
SabinaHMCTS Sep 4, 2024
e5df3a0
Update UpdateOrgNameIntegrationTest.java
SabinaHMCTS Sep 4, 2024
7470194
Changes to fix review comments
SabinaHMCTS Sep 5, 2024
e7b85c9
Changes to fix review comments
SabinaHMCTS Sep 5, 2024
8a86724
Changes to fix review comments
SabinaHMCTS Sep 5, 2024
0137be0
Changes to fix review comments
SabinaHMCTS Sep 6, 2024
875902a
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Sep 6, 2024
48ffa58
DTSRD-2136: Org name update - refactored IT tests
rajkatla-hmcts Sep 9, 2024
294b75b
DTSRD-2136: Org name update - refactored IT tests
rajkatla-hmcts Sep 9, 2024
3539636
removed teh extra code for DTSRD-2134
SabinaHMCTS Sep 10, 2024
b530f0f
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts Sep 10, 2024
00f0ca5
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts Sep 10, 2024
cc40acf
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts Sep 10, 2024
41d4ffa
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts Sep 10, 2024
d149a7b
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts Sep 11, 2024
60e96f3
DTSRD-2136: Org name update - temporary fix for test coverage issue
rajkatla-hmcts Sep 11, 2024
99e68f1
changed orgId to invalid value
SabinaHMCTS Sep 11, 2024
76ed65f
fixing sonar code smell
SabinaHMCTS Sep 11, 2024
5fd5005
DTSRD-2136: Org name update - populating last updated value
rajkatla-hmcts Sep 11, 2024
b080721
DTSRD-2136: Org name update - populating last updated value
rajkatla-hmcts Sep 11, 2024
836cb17
DTSRD-2136: Org name update - populating last updated value
rajkatla-hmcts Sep 11, 2024
1f657b8
DTSRD-2136: Org name update - functional test update for error scenario
rajkatla-hmcts Sep 11, 2024
4b2d138
DTSRD-2136: Org name update - functional test update for error scenario
rajkatla-hmcts Sep 11, 2024
7bc5b51
DTSRD-2136: Org name update
rajkatla-hmcts Sep 11, 2024
9efcae0
fixing review comments on controller changed status to OK and deleted…
SabinaHMCTS Sep 12, 2024
612f4b0
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS Sep 17, 2024
581a2ab
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS Sep 17, 2024
57a11b9
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS Sep 17, 2024
924344b
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jacocoTestCoverageVerification {
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.80
minimum = 0.79 // Raised a ticket DTSRD-3391 to improve test coverage
}
}
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import uk.gov.hmcts.reform.professionalapi.controller.request.OrgAttributeRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationByProfileIdsRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationNameUpdateRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationOtherOrgsCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.PbaRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.UpdatePbaRequest;
Expand Down Expand Up @@ -1315,6 +1316,21 @@ public void updateOrganisation(OrganisationCreationRequest organisationCreationR
.statusCode(expectedStatus.value());
}

public Response updatesOrganisationName(OrganisationNameUpdateRequest organisationNameUpdateRequest,
String role,
HttpStatus expectedStatus) {

Response response = getMultipleAuthHeadersInternal()
.body(organisationNameUpdateRequest)
.put("/refdata/internal/v1/organisations/name")
.andReturn();

log.info("{}:: Update organisation Name response: {}",
loggingComponentName, response.getStatusCode());

return response;
}

public void updateOrganisationToReview(String organisationIdentifier, String statusMessage, String role) {

OrganisationCreationRequest organisationCreationRequest = createOrganisationRequest()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void ac10_modify_roles_of_active_users_for_an_organisation_with_invalid_org_id_s
String userIdentifier = (String) newUserResponse.get(USER_IDENTIFIER);

Map<String, Object> response = professionalReferenceDataClient
.modifyUserRolesOfOrganisation(createModifyUserProfileData(), "%7C", userIdentifier, hmctsAdmin);
.modifyUserRolesOfOrganisation(createModifyUserProfileData(), "ABCD", userIdentifier, hmctsAdmin);
assertThat(response.get("http_status")).isNotNull();
assertThat(response.get("http_status")).isEqualTo("400");

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
package uk.gov.hmcts.reform.professionalapi;


import org.apache.commons.lang.RandomStringUtils;
import org.junit.jupiter.api.Test;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationNameUpdateRequest;
import uk.gov.hmcts.reform.professionalapi.util.AuthorizationEnabledIntegrationTest;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import static org.assertj.core.api.Assertions.assertThat;
import static uk.gov.hmcts.reform.professionalapi.helper.OrganisationFixtures.someMinimalOrganisationRequest;

class UpdateOrgNameIntegrationTest extends AuthorizationEnabledIntegrationTest {


@Test
void update_name_of_an_active_organisation_should_return_success_if_all_requests_updated() {
//create organisation
String orgId1 = getActiveOrganisationId();
String orgId2 = getActiveOrganisationId();

//create request to update organisation
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest(
"updatedName1","updatedName2",orgId1,orgId2);
//updateName
Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin);

LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body");
assertThat(responses.get("status")).isEqualTo("success");
assertThat(responses.get("message")).isEqualTo("All names updated successfully");

verifyRetrievedOrg(orgId1,"updatedName1");
verifyRetrievedOrg(orgId2,"updatedName2");

deleteCreatedTestOrganisations(orgId1, orgId2);
}

@Test
void update_name_of_an_active_organisation_should_return_partial_success_if_any_fail() {
//create organisation
String orgId1 = getActiveOrganisationId();
String orgId2 = getActiveOrganisationId();

//create request to update organisation
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest(
"updatedName1","",orgId1,orgId2);

Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin);

LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body");
assertThat(responses.get("status")).isEqualTo("partial_success");

//verify successfully saved
verifyRetrievedOrg(orgId1,"updatedName1");

//verify error response
ArrayList responseList = (ArrayList)responses.get("names");
LinkedHashMap result = (LinkedHashMap)responseList.get(1);
assertThat(result.get("organisationId")).isEqualTo(orgId2);
assertThat(result.get("status")).isEqualTo("failure");
assertThat(result.get("statusCode")).isEqualTo(400);
assertThat(result.get("message")).isEqualTo("Organisation name is missing");

deleteCreatedTestOrganisations(orgId1, orgId2);
}

@Test
void update_name_missing_in_all_requests_should_return_failure() {
//create organisation
String orgId1 = getActiveOrganisationId();
String orgId2 = getActiveOrganisationId();

//create request to update organisation
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest(
"",null,orgId1,orgId2);

Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin);

LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body");

assertThat(responses.get("status")).isEqualTo("failure");

ArrayList responseList = (ArrayList)responses.get("names");
LinkedHashMap firstResult = (LinkedHashMap)responseList.get(0);
LinkedHashMap secondResult = (LinkedHashMap)responseList.get(1);
assertThat(secondResult.get("organisationId")).isEqualTo(orgId2);
assertThat(secondResult.get("status")).isEqualTo("failure");
assertThat(secondResult.get("statusCode")).isEqualTo(400);
assertThat(secondResult.get("message")).isEqualTo("Organisation name is missing");

assertThat(firstResult.get("organisationId")).isEqualTo(orgId1);
assertThat(firstResult.get("status")).isEqualTo("failure");
assertThat(firstResult.get("statusCode")).isEqualTo(400);
assertThat(firstResult.get("message")).isEqualTo("Organisation name is missing");

deleteCreatedTestOrganisations(orgId1, orgId2);
}

@Test
void orgId_missing_in_all_requests_should_return_failure() {
//create request to update organisation
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest(
"updatedName1","updatedName2","1235874596555555",null);

Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin);

LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body");

assertThat(responses.get("status")).isEqualTo("failure");

ArrayList responseList = (ArrayList)responses.get("names");
LinkedHashMap firstResult = (LinkedHashMap)responseList.get(0);
LinkedHashMap secondResult = (LinkedHashMap)responseList.get(1);
assertThat(secondResult.get("organisationId")).isEqualTo("");
assertThat(secondResult.get("status")).isEqualTo("failure");
assertThat(secondResult.get("statusCode")).isEqualTo(400);
assertThat(secondResult.get("message")).isEqualTo("Organisation id is missing");

assertThat(firstResult.get("organisationId")).isEqualTo("1235874596555555");
assertThat(firstResult.get("status")).isEqualTo("failure");
assertThat(firstResult.get("statusCode")).isEqualTo(400);
assertThat(firstResult.get("message")).isEqualTo(
"The given organisationIdentifier must be 7 Alphanumeric Characters");

}



@Test
void update_name_with_exception_during_save_returns_500_partial_success() {
//create organisation
String orgId1 = getActiveOrganisationId();
String orgId2 = getActiveOrganisationId();

//create request to update organisation
String organisationNameViolatingDatabaseMaxLengthConstraint = RandomStringUtils.random(296);
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest(
organisationNameViolatingDatabaseMaxLengthConstraint,"updatedName1",orgId1,orgId2);
//create request to update organisation

Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin);
LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body");

assertThat(responses.get("status")).isEqualTo("partial_success");

ArrayList responseList = (ArrayList)responses.get("names");
LinkedHashMap result1 = (LinkedHashMap)responseList.get(0);
assertThat(result1.get("organisationId")).isEqualTo(orgId1);
assertThat(result1.get("status")).isEqualTo("failure");
assertThat(result1.get("statusCode")).isEqualTo(500);
assertThat(result1.get("message").toString().contains(
"Failed to update the name for the given organisationIdentifier. Reason :"));
LinkedHashMap result = (LinkedHashMap)responseList.get(1);
assertThat(result.get("organisationId")).isEqualTo(orgId2);
assertThat(result.get("status")).isEqualTo("success");
assertThat(result.get("statusCode")).isEqualTo(200);
assertThat(result.get("message")).isEqualTo("Name updated successfully");

deleteCreatedTestOrganisations(orgId1, orgId2);

}


private String getActiveOrganisationId() {
OrganisationCreationRequest organisationCreationRequest2 = someMinimalOrganisationRequest().build();
String organisationIdentifier = createAndActivateOrganisationWithGivenRequest(organisationCreationRequest2);
updateOrganisation(organisationIdentifier, hmctsAdmin, "ACTIVE");

return organisationIdentifier;
}

public OrganisationNameUpdateRequest createOrganisationNameUpdateRequest(String name1,String name2,String orgId1,
String orgId2) {
OrganisationNameUpdateRequest organisationNameUpdateRequest = new OrganisationNameUpdateRequest();
List<OrganisationNameUpdateRequest.OrganisationNameUpdateData> organisationNameUpdateDataList
= new ArrayList<>();
OrganisationNameUpdateRequest.OrganisationNameUpdateData organisationNameUpdateData1 =
new OrganisationNameUpdateRequest.OrganisationNameUpdateData(name1,orgId1);
OrganisationNameUpdateRequest.OrganisationNameUpdateData organisationNameUpdateData2 =
new OrganisationNameUpdateRequest.OrganisationNameUpdateData(name2,orgId2);
organisationNameUpdateDataList.add(organisationNameUpdateData1);
organisationNameUpdateDataList.add(organisationNameUpdateData2);
organisationNameUpdateRequest.setOrganisationNameUpdateDataList(organisationNameUpdateDataList);

return organisationNameUpdateRequest;
}

public void verifyRetrievedOrg(String orgId,String expected) {
Map<String, Object> responseBody =
professionalReferenceDataClient.retrieveSingleOrganisation(orgId, hmctsAdmin);
final Object name = responseBody.get("name");
assertThat(name).isNotNull().isEqualTo(expected);

LocalDateTime updatedDate = LocalDateTime.parse(responseBody.get("lastUpdated").toString());
assertThat(updatedDate.toLocalDate()).isEqualTo(LocalDate.now());
}

public void deleteCreatedTestOrganisations(String orgId1, String orgId2) {
professionalReferenceDataClient.deleteOrganisation(hmctsAdmin,orgId1);
professionalReferenceDataClient.deleteOrganisation(hmctsAdmin,orgId2);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import uk.gov.hmcts.reform.professionalapi.controller.request.NewUserCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationByProfileIdsRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationNameUpdateRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationOtherOrgsCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.PbaRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.UpdatePbaRequest;
Expand Down Expand Up @@ -1022,6 +1023,44 @@ public Map<String, Object> findOrganisationsByUserId(String userId, String role)
return getResponse(responseEntity);
}



public ResponseEntity<Map> updateOrgNameException(
OrganisationNameUpdateRequest organisationNameUpdateRequest, String role) {

ResponseEntity<Map> responseEntity = null;
String urlPath = "http://localhost:" + prdApiPort + APP_INT_BASE_PATH + "/name";

HttpEntity<OrganisationNameUpdateRequest> requestEntity = new HttpEntity<>(organisationNameUpdateRequest,
getMultipleAuthHeaders(role));
responseEntity = restTemplate.exchange(urlPath, HttpMethod.PUT, requestEntity, Map.class);

return responseEntity;
}

public Map<String, Object> updateOrgName(
OrganisationNameUpdateRequest organisationNameUpdateRequest, String role) {

ResponseEntity<Map> responseEntity = null;
String urlPath = "http://localhost:" + prdApiPort + APP_INT_BASE_PATH + "/name";
try {
HttpEntity<OrganisationNameUpdateRequest> requestEntity = new HttpEntity<>(organisationNameUpdateRequest,
getMultipleAuthHeaders(role));
responseEntity = restTemplate.exchange(urlPath, HttpMethod.PUT, requestEntity, Map.class);

} catch (RestClientResponseException ex) {
HashMap<String, Object> statusAndBody = new HashMap<>(2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: map creation could be replaced by using Map.of(k1, v1, k2, v2) factory method

statusAndBody.put("http_status", String.valueOf(ex.getRawStatusCode()));
statusAndBody.put("response_body", ex.getResponseBodyAsString());
return statusAndBody;
}

Map<String, Object> organisationResponse = new HashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: map creation could be replaced by using Map.of(k1, v1, k2, v2) factory method

organisationResponse.put("http_status", responseEntity.getStatusCodeValue());
organisationResponse.put("response_body", responseEntity.getBody());
return organisationResponse;
}

public Map<String, Object> retrieveUsersInOrganisationsByOrganisationIdentifiers(
UsersInOrganisationsByOrganisationIdentifiersRequest request, Integer pageSize,
UUID searchAfterUser, UUID searchAfterOrganisation) {
Expand All @@ -1038,5 +1077,6 @@ public Map<String, Object> retrieveUsersInOrganisationsByOrganisationIdentifiers
}
String uriPath = sb.toString();
return postRequest(uriPath, request, null, null);

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package uk.gov.hmcts.reform.professionalapi.util;

import lombok.Builder;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationNameUpdateRequest;

@Builder
public record TestDataArguments(
String statusCode,
String errorMessage,
String organisationIdentifier,
String orgName,
OrganisationNameUpdateRequest organisationNameUpdateRequest,
boolean validOrgIdIsRequired) {}
Loading