{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/comments/329992417","pull_request_review_id":295516031,"id":329992417,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyOTk5MjQxNw==","diff_hunk":"@@ -0,0 +1,113 @@\n+package uk.gov.hmcts.reform.bulkscan.orchestrator.services.servicebus;\n+\n+import com.fasterxml.jackson.databind.ObjectMapper;\n+import com.microsoft.azure.servicebus.Message;\n+import com.microsoft.azure.servicebus.QueueClient;\n+import com.microsoft.azure.servicebus.primitives.ServiceBusException;\n+import org.junit.jupiter.api.BeforeEach;\n+import org.junit.jupiter.api.extension.ExtendWith;\n+import org.junit.jupiter.params.ParameterizedTest;\n+import org.junit.jupiter.params.provider.MethodSource;\n+import org.mockito.ArgumentCaptor;\n+import org.mockito.Mock;\n+import org.mockito.junit.jupiter.MockitoExtension;\n+import org.skyscreamer.jsonassert.JSONAssert;\n+import org.skyscreamer.jsonassert.JSONCompareMode;\n+import uk.gov.hmcts.reform.bulkscan.orchestrator.services.servicebus.model.PaymentData;\n+import uk.gov.hmcts.reform.bulkscan.orchestrator.services.servicebus.model.PaymentsData;\n+\n+import java.time.Instant;\n+\n+import static java.util.Arrays.asList;\n+import static org.assertj.core.api.Assertions.assertThat;\n+import static org.assertj.core.api.Assertions.assertThatThrownBy;\n+import static org.mockito.ArgumentMatchers.any;\n+import static org.mockito.BDDMockito.willThrow;\n+import static org.mockito.Mockito.verify;\n+\n+@ExtendWith(MockitoExtension.class)\n+class PaymentsPublisherTest {\n+\n+    private static Object[][] getIsExceptionRecord() {","path":"src/test/java/uk/gov/hmcts/reform/bulkscan/orchestrator/services/servicebus/PaymentsPublisherTest.java","position":31,"original_position":31,"commit_id":"a16b21720636211b6da48f9fc920844ec1a72d91","original_commit_id":"a16b21720636211b6da48f9fc920844ec1a72d91","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Avoid unused private methods such as 'getIsExceptionRecord()'.](https://app.codacy.com/app/HMCTS/bulk-scan-orchestrator/pullRequest?prid=4237288)","created_at":"2019-10-01T10:49:53Z","updated_at":"2019-10-01T10:49:53Z","html_url":"https://github.com/hmcts/bulk-scan-orchestrator/pull/605#discussion_r329992417","pull_request_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/comments/329992417"},"html":{"href":"https://github.com/hmcts/bulk-scan-orchestrator/pull/605#discussion_r329992417"},"pull_request":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605"}}},"pull_request":{"url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605","id":322613527,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIyNjEzNTI3","html_url":"https://github.com/hmcts/bulk-scan-orchestrator/pull/605","diff_url":"https://github.com/hmcts/bulk-scan-orchestrator/pull/605.diff","patch_url":"https://github.com/hmcts/bulk-scan-orchestrator/pull/605.patch","issue_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/605","number":605,"state":"open","locked":false,"title":"Feature/parse payment info and publish in orchestrator","user":{"login":"apereverzin","id":2663436,"node_id":"MDQ6VXNlcjI2NjM0MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/2663436?v=4","gravatar_id":"","url":"https://api.github.com/users/apereverzin","html_url":"https://github.com/apereverzin","followers_url":"https://api.github.com/users/apereverzin/followers","following_url":"https://api.github.com/users/apereverzin/following{/other_user}","gists_url":"https://api.github.com/users/apereverzin/gists{/gist_id}","starred_url":"https://api.github.com/users/apereverzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apereverzin/subscriptions","organizations_url":"https://api.github.com/users/apereverzin/orgs","repos_url":"https://api.github.com/users/apereverzin/repos","events_url":"https://api.github.com/users/apereverzin/events{/privacy}","received_events_url":"https://api.github.com/users/apereverzin/received_events","type":"User","site_admin":false},"body":"### JIRA link (if applicable) ###\r\nhttps://tools.hmcts.net/jira/browse/BPS-763\r\n\r\n\r\n### Change description ###\r\nPaymentsPublisher::publishPayments is called after CCD response\r\n\r\n\r\n**Does this PR introduce a breaking change?** (check one with \"x\")\r\n\r\n```\r\n[ ] Yes\r\n[x] No\r\n```\r\n","created_at":"2019-09-30T06:07:26Z","updated_at":"2019-10-01T10:49:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6dcc38f4a96c4802cde58c859a89cf8027292f0d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1586340418,"node_id":"MDU6TGFiZWwxNTg2MzQwNDE4","url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/labels/ns:bulk-scan-orchestrator-pr-605","name":"ns:bulk-scan-orchestrator-pr-605","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605/commits","review_comments_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605/comments","review_comment_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/605/comments","statuses_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/statuses/a16b21720636211b6da48f9fc920844ec1a72d91","head":{"label":"hmcts:feature/parse-payment-info-and-publish-in-orchestrator","ref":"feature/parse-payment-info-and-publish-in-orchestrator","sha":"a16b21720636211b6da48f9fc920844ec1a72d91","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":145695191,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU2OTUxOTE=","name":"bulk-scan-orchestrator","full_name":"hmcts/bulk-scan-orchestrator","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/bulk-scan-orchestrator","description":null,"fork":false,"url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator","forks_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/forks","keys_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/teams","hooks_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/hooks","issue_events_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/events","assignees_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/tags","blobs_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/languages","stargazers_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/stargazers","contributors_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/contributors","subscribers_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/subscribers","subscription_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/subscription","commits_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/merges","archive_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/downloads","issues_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/deployments","created_at":"2018-08-22T10:43:53Z","updated_at":"2019-09-30T15:41:37Z","pushed_at":"2019-10-01T10:47:10Z","git_url":"git://github.com/hmcts/bulk-scan-orchestrator.git","ssh_url":"git@github.com:hmcts/bulk-scan-orchestrator.git","clone_url":"https://github.com/hmcts/bulk-scan-orchestrator.git","svn_url":"https://github.com/hmcts/bulk-scan-orchestrator","homepage":null,"size":3405,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"335b647a311a0ad44ca4dc24c8961746cd4ac736","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":145695191,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU2OTUxOTE=","name":"bulk-scan-orchestrator","full_name":"hmcts/bulk-scan-orchestrator","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/bulk-scan-orchestrator","description":null,"fork":false,"url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator","forks_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/forks","keys_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/teams","hooks_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/hooks","issue_events_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/events","assignees_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/tags","blobs_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/languages","stargazers_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/stargazers","contributors_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/contributors","subscribers_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/subscribers","subscription_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/subscription","commits_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/merges","archive_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/downloads","issues_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/deployments","created_at":"2018-08-22T10:43:53Z","updated_at":"2019-09-30T15:41:37Z","pushed_at":"2019-10-01T10:47:10Z","git_url":"git://github.com/hmcts/bulk-scan-orchestrator.git","ssh_url":"git@github.com:hmcts/bulk-scan-orchestrator.git","clone_url":"https://github.com/hmcts/bulk-scan-orchestrator.git","svn_url":"https://github.com/hmcts/bulk-scan-orchestrator","homepage":null,"size":3405,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605"},"html":{"href":"https://github.com/hmcts/bulk-scan-orchestrator/pull/605"},"issue":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/605"},"comments":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/issues/605/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/pulls/605/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/bulk-scan-orchestrator/statuses/a16b21720636211b6da48f9fc920844ec1a72d91"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}