generated from hmcts/service-hmcts-crime-springboot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
SPRDT-660 reworked implementation #123
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
Open
rajasekharkunchala
wants to merge
168
commits into
team/cct-1981
Choose a base branch
from
dev/sprdt-660b
base: team/cct-1981
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,037
−3
Open
Changes from all commits
Commits
Show all changes
168 commits
Select commit
Hold shift + click to select a range
08f15ef
LPT-1847 (#61)
ynegi 71da25b
LPT-1978 [BE] Data harvesting and mapping for Standard Court List (#59)
ertugrulduran 04f545c
LPT-1977 [BE] Data harvesting,mapping & transformation for Public Lis…
ertugrulduran 138e61d
LPT-1992 - Blob storage integration for tmp PDF link (#63)
ynegi e5341d1
new v1.0.3
arcadius a1f40b7
disabling failing test for now
arcadius d935545
Revert "disabling failing test for now"
arcadius 8f15bdf
LPT-2000:[BE] Jobs Manager Orchestration STANDARD LIST (#64)
ertugrulduran 59a9c0b
disabling failing test for now
arcadius 7fa2ee1
disabling failing test for now
arcadius dc054b8
disabling failing test for now
arcadius 3c811b0
LPT-2001:[BE] Publish to Cath STANDARD LIST (#65)
ertugrulduran d65430d
rm build-docker
arcadius d2f2a91
rm build-docker
arcadius 5be25f1
LPT-2008:[BE]-Clean Up Standard Court and Public Court Controllers an…
ertugrulduran d40e1c8
rm build-docker
arcadius 455b0c3
rm build-docker
arcadius 2d1a8fb
rm build-docker
arcadius 61425d3
jndi keyz
arcadius 528c41e
jndi keyz
arcadius d054599
jndi keyz as env variables
arcadius 1c98414
publishing dummy payload
arcadius ef0f1e9
publishing dummy payload
arcadius fb4e0ca
publishing dummy payload
arcadius fc67063
LPT-1993 (#67)
ynegi 551e4fd
Feature/lpt 2008 (#68)
ertugrulduran aee3bd5
publishing dummy payload
arcadius 52cf877
LPT-2014 (#69)
ynegi e8d387f
rm
arcadius 941370a
Merge pull request #70 from hmcts/tmp/prep-for-ui-build
ynegi 80d3211
rm sas
arcadius 949a64f
LPT-2038 (#71)
ynegi a28d140
LPT-2042-query-endpoint-refactor
arcadius 24268c9
LPT-2042-query-endpoint-refactor
arcadius af3af7b
tests passing
arcadius ab3a640
tests passing
arcadius 07dfe79
tests passing
arcadius ac117ed
Merge pull request #72 from hmcts/tmp/LPT-2042-query-endpoint-refactor
ynegi 337afd6
tests passing
arcadius 46e217a
adding validation (#73)
ertugrulduran d46fb78
LPT-2044:getting courtCenter info from reference data (#74)
ertugrulduran e4879b8
Document generator integration (#75)
ynegi bd5d362
Revert "Document generator integration (#75)" (#76)
arcadiushmcts 702c21f
LPT-1984 (#77)
ynegi a552bfa
LPT-2045:replacing listing query with application/vnd.progression.sea…
ertugrulduran a01e2e6
tests passing
arcadius 671cd26
tests passing
arcadius e1298aa
adding publishDate
arcadius 26ac8e1
adding publishDate
arcadius dd24b97
adding publishDate
arcadius ae2a89d
refactor
arcadius a42e9c3
refactor to query only once
arcadius 7aaac4c
adding optional param makeExternalCalls to be removed later in LPT-2052
arcadius f783680
adding optional param makeExternalCalls to be removed later in LPT-2052
arcadius bd0922f
ok
arcadius 3c32212
ok
arcadius 52204d3
LPT-2051:[BE] Failing integration tests due to move to progression qu…
ertugrulduran c8b1130
Fixing end point (#80)
ertugrulduran 687d6e8
ok
arcadius 7acfff3
disabling data fetch
arcadius 1ad5fa5
disabling data fetch
arcadius a2884b5
cors
arcadius 57b7b95
cors
arcadius f6e6a4f
Tmp/lpt 2059 query listing (#82)
arcadiushmcts e27c081
Tmp/lpt 2059 query listing (#83)
arcadiushmcts 354bc77
query listing
arcadius dc30116
query listing
arcadius 644783b
query listing
arcadius 36c3995
query listing
arcadius ec3016f
Fixing wiremock issue (#81)
ertugrulduran fd359ce
query listing
arcadius 265b6c7
LPT-2059:Replacing ProgressionQueryService with Listing Service (#84)
ertugrulduran 7955fea
query listing
arcadius 570933a
query listing
arcadius 28069c0
query listing
arcadius dba4ffa
query listing
arcadius 913f60a
LPT-2053 - On Exception, store error message in DB
ynegi 1891535
query listing
arcadius 6948607
LPT-2053 - On Exception, store error message in DB
ynegi debba8a
Merge branch 'team/cct-1981' into LPT-2053
ynegi 9f3f698
Merge pull request #85 from hmcts/LPT-2053
ynegi 1bd1e24
removed the duplicate file (#86)
ynegi ada9971
query listing
arcadius d12c6dd
query listing
arcadius fe3b492
query listing
arcadius 0e77b6d
pointing all to new publisher storage
arcadius 0f8f241
file download
arcadius 5065ed4
LPT-2053 fix failed IT tests (#88)
ynegi c2873a1
dynamic court list type
arcadius 5de939f
dynamic court list type
arcadius 0e4e274
dynamic court list type
arcadius 6d320e4
dynamic court list type
arcadius f313400
LPT-2011:Renaming trasnformation (#89)
ertugrulduran fa6844d
LPT-2011:Renaming transformation (#91)
ertugrulduran 1bf0a6c
fix failed intergation tests (#90)
ynegi 1d13760
handling err when Cath pub fails
arcadius 7a985fa
job manager upgrade
arcadius 9d1ff1a
job manager upgrade
arcadius f628b78
LPT-2081:updating schema (#92)
ertugrulduran 6e0a36a
LPT-2083 Fix English template for PUBLIC_ONLINE and STANDARD (#93)
ynegi ffa6894
LPT-2085:Sending Missing Post Code to CaTH (#94)
ertugrulduran 24bb724
LPT-2085_2:adding isWelsh field to CourtListPayload (#95)
ertugrulduran 03f76dd
new v0.1.17
arcadius bcfe5b2
LPT-2082 - BE Welsh support in PDF generation (#96)
ynegi 161f98c
fix template path (#97)
ynegi b17a07f
LPT-2088:Adding new IT test for schema validation (#99)
ertugrulduran ea56a45
dynamic disply to time
arcadius 51e0aed
dynamic disply to time
arcadius 405a0d1
LPT-2082 - Welsh support for Cath publishing (#100)
ynegi 9975634
online_public_court_list PDF postcode missed (#101)
ertugrulduran 4bd9c88
LPT-2082 (#102)
ynegi c85df3d
enable migration for task manager
arcadius fdf3aac
LPT-2099:New CaTH schema updated on 23-feb (#103)
ertugrulduran 2745ce2
dynamic disply to time
arcadius 65995fd
calling progression instead of listring
arcadius 150e8fb
calling progression instead of listring
arcadius 729c63c
calling progression instead of listring
arcadius 6900185
calling progression instead of listring
arcadius 6f1bfc6
Part 1 of LPT-2112: adding additional data to CaTH payload
arcadius 096e467
LPT-2110 - Add an ENV var that allows to enable or disable publishing…
ynegi 6be849b
LPT-2033 [BE] Use same HTTP client everywhere (#105)
ertugrulduran ce3befb
LPT-2109:[BE] Update new schema 2025.02.27 (#106)
ertugrulduran 61de36a
LPT-2115:[BE] Extra fields not needed?
ertugrulduran 0c3db11
Revert "LPT-2115:[BE] Extra fields not needed?"
ertugrulduran c22c3ff
LPT-2115:[BE] Extra fields not needed (#110)
ertugrulduran b568041
LPT-2114 - rosecuting Authority Party Role to be set (#111)
ynegi e86de97
calling progression instead of listring
arcadius 0ab4edd
calling progression instead of listring
arcadius e488c4b
LPT-1998 & LPT-2002 Integration Test For ONLINE_PUBLIC and STANDARD L…
ynegi e299cf9
calling progression instead of listring
arcadius 03ae128
calling progression instead of listring
arcadius a1b1470
LPT-2118:[BE] ReportingRestriction array (#112)
ertugrulduran 957af3b
Dev/sprdt 659 from cct 1981 (#109)
korayhmcts f411c74
rm unnecessary config
arcadius 13d46fa
new it add
korayhmcts e6e3b70
Merge pull request #115 from hmcts/dev/SPRDT-659-IT
ozturkmenb f6bcd12
LPT-2124:[BE] CaTH publishing feedback 002 (#114)
ertugrulduran 1a7b4f8
LPT-2116 - Add subject in Cath payload (#113)
ynegi 630987a
new fields
arcadius d552c5f
new fields mapped
arcadius 58dbb3c
Fixing unittest issue (#116)
ertugrulduran 383b558
new fields mapped
arcadius d05c1d1
new fields mapped
arcadius 58b8f1c
new fields mapped
arcadius a5af68e
new fields mapped
arcadius 28375eb
new fields mapped
arcadius 718d47b
Revert "new fields mapped"
arcadius b817f8c
LPT-2131:[BE] Stop sending empty string to CaTH (#118)
ertugrulduran 5998b44
LPT-2153: Linked application details are not displayed in Publish onl…
ertugrulduran ccd13fc
fixing failed unit tests
arcadius 1f957be
LPT-2128:[BE] Netty warning message (#121)
ertugrulduran f34565f
fixing failed unit tests
arcadius 0850ea3
fixing failed unit tests
arcadius 66210a3
we should include applications for CaTH
arcadius 9238e93
we should include applications for CaTH
arcadius a2d6626
we should include applications for CaTH
arcadius 6adcf49
we should include applications for CaTH
arcadius 778a12d
SPRDT-660 reworked implementation
rajkunchala 620b618
SPRDT-660 address review comments
rajkunchala ea6967c
LPT-2172: [BE] Access Control update form publisher endpoints (#124)
ertugrulduran b6eb286
LPT-2078:[BE] Code clean up CaTH (#125)
ertugrulduran b6304d8
job manager upgrade
arcadius 714ed97
resolve merge conflicts
rajkunchala 1539825
LPT-2166: [BE] Store final payload we send to CaTH into azure blog st…
ertugrulduran ae594cf
api spec upgrade
arcadius a0d2af3
api spec upgrade
arcadius c887707
SPRDT-660 resolve merge conflicts
rajkunchala f72cd07
SPRDT-660 resolve mergec conflicts and fix code
rajkunchala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
156 changes: 156 additions & 0 deletions
156
src/integrationTest/java/uk/gov/hmcts/cp/http/SjpCourtListPublishControllerHttpLiveTest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,156 @@ | ||
| package uk.gov.hmcts.cp.http; | ||
|
|
||
| import static org.assertj.core.api.Assertions.assertThat; | ||
| import static org.assertj.core.api.Assertions.assertThatThrownBy; | ||
|
|
||
| import com.fasterxml.jackson.databind.JsonNode; | ||
| import com.fasterxml.jackson.databind.ObjectMapper; | ||
| import uk.gov.hmcts.cp.config.ObjectMapperConfig; | ||
|
|
||
| import org.junit.jupiter.api.Test; | ||
| import org.springframework.http.HttpEntity; | ||
| import org.springframework.http.HttpHeaders; | ||
| import org.springframework.http.HttpMethod; | ||
| import org.springframework.http.HttpStatus; | ||
| import org.springframework.http.MediaType; | ||
| import org.springframework.http.ResponseEntity; | ||
| import org.springframework.web.client.HttpClientErrorException; | ||
| import org.springframework.web.client.RestTemplate; | ||
|
|
||
| /** | ||
| * Integration tests for SJP court list publish endpoint (/api/court-list-publish/sjp/publishCourtList). | ||
| * Same style as {@link CourtListPublishControllerHttpLiveTest}; requires app running with integration profile. | ||
| */ | ||
| public class SjpCourtListPublishControllerHttpLiveTest extends AbstractTest { | ||
|
|
||
| private static final String BASE_URL = System.getProperty("app.baseUrl", "http://localhost:8082/courtlistpublishing-service"); | ||
| private static final String SJP_PUBLISH_ENDPOINT = BASE_URL + "/api/court-list-publish/sjp/publishCourtList"; | ||
|
|
||
| private static final String CJSCPPUID_HEADER = "CJSCPPUID"; | ||
| private static final String INTEGRATION_TEST_USER_ID = "integration-test-user-id"; | ||
|
|
||
| private final RestTemplate http = new RestTemplate(); | ||
| private final ObjectMapper objectMapper = ObjectMapperConfig.getObjectMapper(); | ||
|
|
||
| @Test | ||
| void postSjpCourtList_returns200_withFailedStatus_whenListPayloadOmitted() throws Exception { | ||
| String requestJson = """ | ||
| { | ||
| "listType": "SJP_PUBLISH_LIST" | ||
| } | ||
| """; | ||
|
|
||
| ResponseEntity<String> response = postSjpRequest(requestJson); | ||
|
|
||
| assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK); | ||
| JsonNode body = objectMapper.readTree(response.getBody()); | ||
| assertThat(body.get("status").asText()).isEqualTo("FAILED"); | ||
| assertThat(body.get("listType").asText()).isEqualTo("SJP_PUBLISH_LIST"); | ||
| assertThat(body.get("message").asText()).contains("listPayload"); | ||
| } | ||
|
|
||
| @Test | ||
| void postSjpCourtList_returns200_withFailedStatus_whenListPayloadInBodyButNotExposedByApi() throws Exception { | ||
| // When API model exposes getListPayload() this can be changed to expect ACCEPTED | ||
| String requestJson = """ | ||
| { | ||
| "listType": "SJP_PUBLISH_LIST", | ||
| "listPayload": { | ||
| "generatedDateAndTime": "2025-03-09T10:00:00", | ||
| "readyCases": [ | ||
| { | ||
| "caseUrn": "SJP-INT-TEST-001", | ||
| "defendantName": "Defendant One", | ||
| "prosecutorName": "CPS", | ||
| "sjpOffences": [{"title": "Offence 1", "wording": "Wording 1"}] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| """; | ||
|
|
||
| ResponseEntity<String> response = postSjpRequest(requestJson); | ||
|
|
||
| assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK); | ||
| JsonNode body = objectMapper.readTree(response.getBody()); | ||
| assertThat(body.get("listType").asText()).isEqualTo("SJP_PUBLISH_LIST"); | ||
| // Until API 0.1.21+ exposes listPayload, controller passes null -> FAILED | ||
| assertThat(body.get("status").asText()).isEqualTo("FAILED"); | ||
| assertThat(body.get("message").asText()).contains("listPayload"); | ||
| } | ||
|
|
||
| @Test | ||
| void postSjpCourtList_returns200_forPressListType() throws Exception { | ||
| String requestJson = """ | ||
| { | ||
| "listType": "SJP_PRESS_LIST" | ||
| } | ||
| """; | ||
|
|
||
| ResponseEntity<String> response = postSjpRequest(requestJson); | ||
|
|
||
| assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK); | ||
| JsonNode body = objectMapper.readTree(response.getBody()); | ||
| assertThat(body.get("listType").asText()).isEqualTo("SJP_PRESS_LIST"); | ||
| assertThat(body.get("status").asText()).isEqualTo("FAILED"); | ||
| assertThat(body.get("message").asText()).contains("listPayload"); | ||
| } | ||
|
|
||
| @Test | ||
| void postSjpCourtList_returns400_whenListTypeInvalid() { | ||
| String requestJson = """ | ||
| { | ||
| "listType": "INVALID_LIST_TYPE" | ||
| } | ||
| """; | ||
|
|
||
| assertThatThrownBy(() -> postSjpRequest(requestJson)) | ||
| .isInstanceOf(HttpClientErrorException.class) | ||
| .satisfies(ex -> { | ||
| assertThat(((HttpClientErrorException) ex).getStatusCode()).isEqualTo(HttpStatus.BAD_REQUEST); | ||
| }); | ||
| } | ||
|
|
||
| @Test | ||
| void postSjpCourtList_returns400_whenListTypeMissing() { | ||
| String requestJson = "{}"; | ||
|
|
||
| assertThatThrownBy(() -> postSjpRequest(requestJson)) | ||
| .isInstanceOf(HttpClientErrorException.class) | ||
| .satisfies(ex -> { | ||
| assertThat(((HttpClientErrorException) ex).getStatusCode()).isEqualTo(HttpStatus.BAD_REQUEST); | ||
| }); | ||
| } | ||
|
|
||
| @Test | ||
| void postSjpCourtList_returns400_whenBodyNull() { | ||
| HttpHeaders headers = new HttpHeaders(); | ||
| headers.setContentType(MediaType.APPLICATION_JSON); | ||
| headers.set(CJSCPPUID_HEADER, INTEGRATION_TEST_USER_ID); | ||
|
|
||
| assertThatThrownBy(() -> http.exchange( | ||
| SJP_PUBLISH_ENDPOINT, | ||
| HttpMethod.POST, | ||
| new HttpEntity<>(headers), | ||
| String.class)) | ||
| .isInstanceOf(HttpClientErrorException.class) | ||
| .satisfies(ex -> { | ||
| assertThat(((HttpClientErrorException) ex).getStatusCode()).isEqualTo(HttpStatus.BAD_REQUEST); | ||
| }); | ||
| } | ||
|
|
||
| private HttpEntity<String> createSjpHttpEntity(String json) { | ||
| HttpHeaders headers = new HttpHeaders(); | ||
| headers.setContentType(MediaType.APPLICATION_JSON); | ||
| headers.set(CJSCPPUID_HEADER, INTEGRATION_TEST_USER_ID); | ||
| return new HttpEntity<>(json, headers); | ||
| } | ||
|
|
||
| private ResponseEntity<String> postSjpRequest(String requestJson) { | ||
| return http.exchange( | ||
| SJP_PUBLISH_ENDPOINT, | ||
| HttpMethod.POST, | ||
| createSjpHttpEntity(requestJson), | ||
| String.class); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/uk/gov/hmcts/cp/domain/sjp/SjpListPayload.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import lombok.Getter; | ||
|
|
||
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| /** | ||
| * SJP list payload (PubHub parity). Contains generatedDateAndTime and readyCases | ||
| * as supplied by SJP (e.g. public.sjp.pending-cases-public-list-generated). | ||
| */ | ||
| @Getter | ||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| public class SjpListPayload { | ||
|
|
||
| private final String generatedDateAndTime; | ||
| private final List<Map<String, Object>> readyCases; | ||
|
|
||
| public SjpListPayload( | ||
| @JsonProperty("generatedDateAndTime") String generatedDateAndTime, | ||
| @JsonProperty("readyCases") List<Map<String, Object>> readyCases) { | ||
| this.generatedDateAndTime = generatedDateAndTime; | ||
| this.readyCases = readyCases; | ||
| } | ||
| } |
19 changes: 19 additions & 0 deletions
19
src/main/java/uk/gov/hmcts/cp/domain/sjp/cath/PubhubMaster.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp.cath; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * CaTH root payload (mirrors staging PubHub schema PubhubMaster). | ||
| */ | ||
| @Value | ||
| @Builder | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class PubhubMaster { | ||
|
|
||
| SjpCathDocument document; | ||
| List<SjpCathCourtLists> courtLists; | ||
| } |
21 changes: 21 additions & 0 deletions
21
src/main/java/uk/gov/hmcts/cp/domain/sjp/cath/SjpCathAddress.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp.cath; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * CaTH address (mirrors staging PubHub schema Address). | ||
| */ | ||
| @Value | ||
| @Builder | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class SjpCathAddress { | ||
|
|
||
| List<String> line; | ||
| String town; | ||
| String county; | ||
| String postCode; | ||
| } |
16 changes: 16 additions & 0 deletions
16
src/main/java/uk/gov/hmcts/cp/domain/sjp/cath/SjpCathCases.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp.cath; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| /** | ||
| * CaTH case reference (mirrors staging PubHub schema Cases). | ||
| */ | ||
| @Value | ||
| @Builder | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class SjpCathCases { | ||
|
|
||
| String caseUrn; | ||
| } |
18 changes: 18 additions & 0 deletions
18
src/main/java/uk/gov/hmcts/cp/domain/sjp/cath/SjpCathCourtHouse.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp.cath; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * CaTH court house (mirrors staging PubHub schema CourtHouse). | ||
| */ | ||
| @Value | ||
| @Builder | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class SjpCathCourtHouse { | ||
|
|
||
| List<SjpCathCourtRoom> courtRoom; | ||
| } |
18 changes: 18 additions & 0 deletions
18
src/main/java/uk/gov/hmcts/cp/domain/sjp/cath/SjpCathCourtLists.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp.cath; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * CaTH court lists (mirrors staging PubHub schema CourtLists). | ||
| */ | ||
| @Value | ||
| @Builder | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class SjpCathCourtLists { | ||
|
|
||
| SjpCathCourtHouse courtHouse; | ||
| } |
18 changes: 18 additions & 0 deletions
18
src/main/java/uk/gov/hmcts/cp/domain/sjp/cath/SjpCathCourtRoom.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp.cath; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * CaTH court room (mirrors staging PubHub schema CourtRoom). | ||
| */ | ||
| @Value | ||
| @Builder | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class SjpCathCourtRoom { | ||
|
|
||
| List<SjpCathSession> session; | ||
| } |
18 changes: 18 additions & 0 deletions
18
src/main/java/uk/gov/hmcts/cp/domain/sjp/cath/SjpCathDocument.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package uk.gov.hmcts.cp.domain.sjp.cath; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| /** | ||
| * CaTH document header (mirrors staging PubHub schema Document). | ||
| */ | ||
| @Value | ||
| @Builder | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class SjpCathDocument { | ||
|
|
||
| String documentName; | ||
| String publicationDate; | ||
| String version; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add proper in-container integration tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done