Skip to content

Commit b7eaa91

Browse files
authored
Merge pull request #1559 from hmcts/SSCSCI-1214
SSCSCI-1214 commons bump to pr
2 parents cc16171 + 63a4338 commit b7eaa91

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ dependencies {
249249

250250
implementation group: 'net.logstash.logback', name: 'logstash-logback-encoder', version: '7.4'
251251
implementation group: 'com.github.hmcts', name: 'java-logging', version: '6.0.1'
252-
implementation group: 'com.github.hmcts', name: 'sscs-common', version: '5.12.21'
252+
implementation group: 'com.github.hmcts', name: 'sscs-common', version: '5.12.22'
253253
implementation group: 'com.github.mwiede', name: 'jsch', version: '0.2.11'
254254

255255
implementation group: 'org.json', name: 'json', version: '20240303'

src/main/java/uk/gov/hmcts/reform/sscs/job/ProcessingVenueMigrationJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ boolean isRollback() {
8282

8383
public void updateCaseData(SscsCaseData caseData, String venue) {
8484
String postCode = resolvePostCode(caseData);
85-
RegionalProcessingCenter newRpc = regionalProcessingCenterService.getByPostcode(postCode);
85+
RegionalProcessingCenter newRpc = regionalProcessingCenterService.getByPostcode(postCode, false);
8686
String venueEpimsId = venueService.getEpimsIdForVenue(venue);
8787
log.info("Epims id for case {}: {}", caseData.getCaseReference(), venueEpimsId);
8888
CourtVenue courtVenue = refDataService.getCourtVenueRefDataByEpimsId(venueEpimsId);

src/main/java/uk/gov/hmcts/reform/sscs/services/mapper/CaseDataBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ RegionalProcessingCenter buildRegionalProcessingCentre(AppealCase appealCase, Pa
145145
return hearings.stream()
146146
.reduce(getLast())
147147
.map(hearing -> regionalProcessingCenterService.getByVenueId(hearing.getVenueId()))
148-
.orElse(regionalProcessingCenterService.getByPostcode(appellantParty.getPostCode()));
148+
.orElse(regionalProcessingCenterService.getByPostcode(appellantParty.getPostCode(), false));
149149
}
150150

151151
String findProcessingVenue(String caseId, BenefitType benefitType, final Optional<Parties> appellantParty,

src/test/java/uk/gov/hmcts/reform/sscs/job/ProcessingVenueMigrationJobTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void shouldProcessUpdateCase(SscsCaseData caseData) {
181181
when(venueService.getEpimsIdForVenue(VENUE)).thenReturn(EPIMS_ID);
182182
when(refDataService.getCourtVenueRefDataByEpimsId(EPIMS_ID))
183183
.thenReturn(CourtVenue.builder().regionId(REGION_ID).build());
184-
when(regionalProcessingCenterService.getByPostcode("TS1 1ST"))
184+
when(regionalProcessingCenterService.getByPostcode("TS1 1ST", false))
185185
.thenReturn(RegionalProcessingCenter.builder().name(VENUE).epimsId(EPIMS_ID).build());
186186

187187
underTest.updateCaseData(caseData, VENUE);

src/test/java/uk/gov/hmcts/reform/sscs/services/mapper/CaseDataBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public void shouldBuildRegionalProcessingCentreFromPostcodeWhenThereAreNoHearing
276276
RegionalProcessingCenter expectedRegionalProcessingCentre = RegionalProcessingCenter.builder()
277277
.name("RPC form postcode")
278278
.build();
279-
when(regionalProcessingCentreService.getByPostcode(applicantParty.getPostCode()))
279+
when(regionalProcessingCentreService.getByPostcode(applicantParty.getPostCode(), false))
280280
.thenReturn(expectedRegionalProcessingCentre);
281281
RegionalProcessingCenter regionalProcessingCentre =
282282
caseDataBuilder.buildRegionalProcessingCentre(appeal, applicantParty);
@@ -290,7 +290,7 @@ public void shouldBuildRegionalProcessingCentreFromPostcodeWhenHearingsIsNull()
290290
RegionalProcessingCenter expectedRegionalProcessingCentre = RegionalProcessingCenter.builder()
291291
.name("RPC form postcode")
292292
.build();
293-
when(regionalProcessingCentreService.getByPostcode(applicantParty.getPostCode()))
293+
when(regionalProcessingCentreService.getByPostcode(applicantParty.getPostCode(), false))
294294
.thenReturn(expectedRegionalProcessingCentre);
295295
RegionalProcessingCenter regionalProcessingCentre =
296296
caseDataBuilder.buildRegionalProcessingCentre(appeal, applicantParty);

0 commit comments

Comments
 (0)