{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments/228102685","pull_request_review_id":168291687,"id":228102685,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODEwMjY4NQ==","diff_hunk":"@@ -0,0 +1,176 @@\n+package uk.gov.hmcts.cmc.claimstore.tests.functional.citizen;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.http.HttpStatus;\n+import uk.gov.hmcts.cmc.claimstore.idam.models.User;\n+import uk.gov.hmcts.cmc.claimstore.services.staff.content.countycourtjudgment.AmountContentProvider;\n+import uk.gov.hmcts.cmc.domain.models.Claim;\n+import uk.gov.hmcts.cmc.domain.models.ClaimData;\n+import uk.gov.hmcts.cmc.domain.models.claimantresponse.ClaimantResponse;\n+import uk.gov.hmcts.cmc.domain.models.response.Response;\n+import uk.gov.hmcts.cmc.domain.models.sampledata.SampleClaimData;\n+import uk.gov.hmcts.cmc.domain.models.sampledata.SampleClaimantResponse;\n+import uk.gov.hmcts.cmc.domain.models.sampledata.SampleResponse;\n+\n+import java.io.IOException;\n+import java.util.function.Supplier;\n+\n+public class CountyCourtJudgmentByAdmissionPdfTest extends BaseCCJPdfTest {\n+\n+    @Autowired\n+    private AmountContentProvider amountContentProvider;\n+\n+    private Claim claim;\n+    private User defendant;\n+\n+    @Before\n+    public void before() {\n+        user = idamTestService.createCitizen();\n+        claim = createCase();\n+        defendant = idamTestService.createDefendant(claim.getLetterHolderId());\n+        commonOperations.linkDefendant(defendant.getAuthorisation());\n+    }\n+\n+    @Test\n+    public void shouldBeAbleToFindDataInDefendantRepaymentImmediately() throws IOException {\n+        Response fullAdmissionResponse = SampleResponse.FullAdmission.builder().buildWithPaymentOptionImmediately();\n+\n+        submitDefendantResponse(fullAdmissionResponse, claim.getExternalId());\n+\n+        ClaimantResponse claimantResponse = SampleClaimantResponse\n+            .ClaimantResponseAcceptation\n+            .builder()\n+            .buildAcceptationIssueCCJWithDefendantPaymentIntention();\n+\n+        io.restassured.response.Response responseReceived = commonOperations\n+            .submitClaimantResponse(claimantResponse, claim.getExternalId(), user);\n+        responseReceived.then().statusCode(HttpStatus.CREATED.value());","path":"src/aat/java/uk/gov/hmcts/cmc/claimstore/tests/functional/citizen/CountyCourtJudgmentByAdmissionPdfTest.java","position":49,"original_position":49,"commit_id":"237a5175b41a52c5146cae3b7ac716121ec11b3c","original_commit_id":"237a5175b41a52c5146cae3b7ac716121ec11b3c","user":{"login":"dharmendrak","id":581234,"node_id":"MDQ6VXNlcjU4MTIzNA==","avatar_url":"https://avatars2.githubusercontent.com/u/581234?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmendrak","html_url":"https://github.com/dharmendrak","followers_url":"https://api.github.com/users/dharmendrak/followers","following_url":"https://api.github.com/users/dharmendrak/following{/other_user}","gists_url":"https://api.github.com/users/dharmendrak/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmendrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmendrak/subscriptions","organizations_url":"https://api.github.com/users/dharmendrak/orgs","repos_url":"https://api.github.com/users/dharmendrak/repos","events_url":"https://api.github.com/users/dharmendrak/events{/privacy}","received_events_url":"https://api.github.com/users/dharmendrak/received_events","type":"User","site_admin":false},"body":"better to inline here","created_at":"2018-10-25T09:37:46Z","updated_at":"2018-10-25T09:37:46Z","html_url":"https://github.com/hmcts/cmc-claim-store/pull/493#discussion_r228102685","pull_request_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments/228102685"},"html":{"href":"https://github.com/hmcts/cmc-claim-store/pull/493#discussion_r228102685"},"pull_request":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493"}}},"pull_request":{"url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493","id":217593827,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NTkzODI3","html_url":"https://github.com/hmcts/cmc-claim-store/pull/493","diff_url":"https://github.com/hmcts/cmc-claim-store/pull/493.diff","patch_url":"https://github.com/hmcts/cmc-claim-store/pull/493.patch","issue_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/493","number":493,"state":"open","locked":false,"title":"ROC-4370 Do not issue a CCJ by default","user":{"login":"andrewwa-kainos","id":38751994,"node_id":"MDQ6VXNlcjM4NzUxOTk0","avatar_url":"https://avatars2.githubusercontent.com/u/38751994?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewwa-kainos","html_url":"https://github.com/andrewwa-kainos","followers_url":"https://api.github.com/users/andrewwa-kainos/followers","following_url":"https://api.github.com/users/andrewwa-kainos/following{/other_user}","gists_url":"https://api.github.com/users/andrewwa-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewwa-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewwa-kainos/subscriptions","organizations_url":"https://api.github.com/users/andrewwa-kainos/orgs","repos_url":"https://api.github.com/users/andrewwa-kainos/repos","events_url":"https://api.github.com/users/andrewwa-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/andrewwa-kainos/received_events","type":"User","site_admin":false},"body":"TBC\r\n\r\n### JIRA link (if applicable) ###\r\n\r\n### Change description ###\r\n\r\n**Does this PR introduce a breaking change?** (check one with \"x\")\r\n```\r\n[ ] Yes\r\n[ ] No\r\n```\r\n","created_at":"2018-09-24T09:11:19Z","updated_at":"2018-10-25T09:37:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a538a27bff88c8e0443780f8e5eda5b75dfeb854","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ckalista","id":138029,"node_id":"MDQ6VXNlcjEzODAyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/138029?v=4","gravatar_id":"","url":"https://api.github.com/users/ckalista","html_url":"https://github.com/ckalista","followers_url":"https://api.github.com/users/ckalista/followers","following_url":"https://api.github.com/users/ckalista/following{/other_user}","gists_url":"https://api.github.com/users/ckalista/gists{/gist_id}","starred_url":"https://api.github.com/users/ckalista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckalista/subscriptions","organizations_url":"https://api.github.com/users/ckalista/orgs","repos_url":"https://api.github.com/users/ckalista/repos","events_url":"https://api.github.com/users/ckalista/events{/privacy}","received_events_url":"https://api.github.com/users/ckalista/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493/commits","review_comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493/comments","review_comment_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/493/comments","statuses_url":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/237a5175b41a52c5146cae3b7ac716121ec11b3c","head":{"label":"hmcts:feature/ROC-4370_replace-ccj-admission-request","ref":"feature/ROC-4370_replace-ccj-admission-request","sha":"237a5175b41a52c5146cae3b7ac716121ec11b3c","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":101856095,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE4NTYwOTU=","name":"cmc-claim-store","full_name":"hmcts/cmc-claim-store","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/cmc-claim-store","description":"Backend service for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-claim-store","forks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-claim-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-claim-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-claim-store/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-claim-store/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-claim-store/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-claim-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-claim-store/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-claim-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-claim-store/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-claim-store/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-claim-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-claim-store/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-claim-store/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/deployments","created_at":"2017-08-30T08:17:34Z","updated_at":"2018-10-24T12:10:26Z","pushed_at":"2018-10-25T05:57:33Z","git_url":"git://github.com/hmcts/cmc-claim-store.git","ssh_url":"git@github.com:hmcts/cmc-claim-store.git","clone_url":"https://github.com/hmcts/cmc-claim-store.git","svn_url":"https://github.com/hmcts/cmc-claim-store","homepage":"","size":4801,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":21,"watchers":2,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"239ea3a9cea7b897b7db068178756bf3633ac734","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":101856095,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE4NTYwOTU=","name":"cmc-claim-store","full_name":"hmcts/cmc-claim-store","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/cmc-claim-store","description":"Backend service for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-claim-store","forks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-claim-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-claim-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-claim-store/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-claim-store/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-claim-store/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-claim-store/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-claim-store/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-claim-store/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-claim-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-claim-store/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-claim-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-claim-store/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-claim-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-claim-store/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-claim-store/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-claim-store/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-claim-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-claim-store/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-claim-store/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-claim-store/deployments","created_at":"2017-08-30T08:17:34Z","updated_at":"2018-10-24T12:10:26Z","pushed_at":"2018-10-25T05:57:33Z","git_url":"git://github.com/hmcts/cmc-claim-store.git","ssh_url":"git@github.com:hmcts/cmc-claim-store.git","clone_url":"https://github.com/hmcts/cmc-claim-store.git","svn_url":"https://github.com/hmcts/cmc-claim-store","homepage":"","size":4801,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493"},"html":{"href":"https://github.com/hmcts/cmc-claim-store/pull/493"},"issue":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/493"},"comments":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/issues/493/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/pulls/493/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/cmc-claim-store/statuses/237a5175b41a52c5146cae3b7ac716121ec11b3c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dharmendrak"}}