{"action":"created","comment":{"url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/comments/89970067","pull_request_review_id":10495233,"id":89970067,"diff_hunk":"@@ -51,4 +51,238 @@ class AddressIndexFileReaderSpec extends FlatSpec with Matchers {\n     firstLine.getString(28) shouldBe \"2012-03-19\" // ENTRY_DATE\n \n   }\n-}\n+\n+  \"AddressIndexFileReader\" should\n+    \"read blpu csv file\" in {\n+\n+    // When\n+    val result = AddressIndexFileReader.readBlpuCSV().collect()\n+\n+    // Then\n+    result.length shouldBe 3 // 4 with the header\n+\n+    val firstLine = result(0)\n+\n+    firstLine.getString(0) shouldBe \"21\" // RECORD_IDENTIFIER\n+    firstLine.getString(1) shouldBe \"I\" // CHANGE_TYPE\n+    firstLine.getString(2) shouldBe \"373713\" // PRO_ORDER\n+    firstLine.getString(3) shouldBe \"100010971564\" // UPRN\n+    firstLine.getString(4) shouldBe \"1\" // LOGICAL_STATUS\n+    firstLine.getString(5) shouldBe \"3\" // BLPU_STATE\n+    firstLine.getString(6) shouldBe \"2007-06-26\" // BLPU_STATE_DATE\n+    firstLine.getString(7) shouldBe \"999910971564\" // PARENT_UPRN\n+    firstLine.getString(8) shouldBe \"379203.00\" // X_COORDINATE\n+    firstLine.getString(9) shouldBe \"412780.00\" // Y_COORDINATE\n+    firstLine.getString(10) shouldBe \"53.6111710\" // LATITUDE\n+    firstLine.getString(11) shouldBe \"-2.3158117\" // LONGITUDE\n+    firstLine.getString(12) shouldBe \"1\" // RPC\n+    firstLine.getString(13) shouldBe \"4218\" // LOCAL_CUSTODIAN_CODE\n+    firstLine.getString(14) shouldBe \"E\" // COUNTRY\n+    firstLine.getString(15) shouldBe \"2007-06-26\" // START_DATE\n+    firstLine.getString(16) shouldBe \"2099-02-10\" // END_DATE\n+    firstLine.getString(17) shouldBe \"2016-02-10\" // LAST_UPDATE_DATE\n+    firstLine.getString(18) shouldBe \"2003-09-18\" // ENTRY_DATE\n+    firstLine.getString(19) shouldBe \"D\" // ADDRESSBASE_POSTAL\n+    firstLine.getString(20) shouldBe \"KL8 1JQ\" // POSTCODE_LOCATOR\n+    firstLine.getString(21) shouldBe \"0\" // MULTI_OCC_COUNT\n+  }\n+\n+  \"AddressIndexFileReader\" should","path":"batch/src/test/scala/uk/gov/ons/addressindex/readers/AddressIndexFileReaderSpec.scala","position":41,"original_position":41,"commit_id":"3dcd23ce6511e7b0a9be1508fccfa23e77a54351","original_commit_id":"3dcd23ce6511e7b0a9be1508fccfa23e77a54351","user":{"login":"Mironor","id":480103,"avatar_url":"https://avatars.githubusercontent.com/u/480103?v=3","gravatar_id":"","url":"https://api.github.com/users/Mironor","html_url":"https://github.com/Mironor","followers_url":"https://api.github.com/users/Mironor/followers","following_url":"https://api.github.com/users/Mironor/following{/other_user}","gists_url":"https://api.github.com/users/Mironor/gists{/gist_id}","starred_url":"https://api.github.com/users/Mironor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mironor/subscriptions","organizations_url":"https://api.github.com/users/Mironor/orgs","repos_url":"https://api.github.com/users/Mironor/repos","events_url":"https://api.github.com/users/Mironor/events{/privacy}","received_events_url":"https://api.github.com/users/Mironor/received_events","type":"User","site_admin":false},"body":"Just write one `\"AddressIndexFileReader\" should` with many `\"\" in`\r\n","created_at":"2016-11-29T09:31:18Z","updated_at":"2016-11-29T09:31:29Z","html_url":"https://github.com/ONSdigital/address-index-data/pull/23#discussion_r89970067","pull_request_url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/comments/89970067"},"html":{"href":"https://github.com/ONSdigital/address-index-data/pull/23#discussion_r89970067"},"pull_request":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23","id":95653082,"html_url":"https://github.com/ONSdigital/address-index-data/pull/23","diff_url":"https://github.com/ONSdigital/address-index-data/pull/23.diff","patch_url":"https://github.com/ONSdigital/address-index-data/pull/23.patch","issue_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues/23","number":23,"state":"open","locked":false,"title":"Implements read for NAG specific csv.","user":{"login":"nesstest","id":12844106,"avatar_url":"https://avatars.githubusercontent.com/u/12844106?v=3","gravatar_id":"","url":"https://api.github.com/users/nesstest","html_url":"https://github.com/nesstest","followers_url":"https://api.github.com/users/nesstest/followers","following_url":"https://api.github.com/users/nesstest/following{/other_user}","gists_url":"https://api.github.com/users/nesstest/gists{/gist_id}","starred_url":"https://api.github.com/users/nesstest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesstest/subscriptions","organizations_url":"https://api.github.com/users/nesstest/orgs","repos_url":"https://api.github.com/users/nesstest/repos","events_url":"https://api.github.com/users/nesstest/events{/privacy}","received_events_url":"https://api.github.com/users/nesstest/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-29T09:19:40Z","updated_at":"2016-11-29T09:31:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9251593b19f721a5b4f9769cbe3cebacb2e4fc0","assignee":{"login":"Mironor","id":480103,"avatar_url":"https://avatars.githubusercontent.com/u/480103?v=3","gravatar_id":"","url":"https://api.github.com/users/Mironor","html_url":"https://github.com/Mironor","followers_url":"https://api.github.com/users/Mironor/followers","following_url":"https://api.github.com/users/Mironor/following{/other_user}","gists_url":"https://api.github.com/users/Mironor/gists{/gist_id}","starred_url":"https://api.github.com/users/Mironor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mironor/subscriptions","organizations_url":"https://api.github.com/users/Mironor/orgs","repos_url":"https://api.github.com/users/Mironor/repos","events_url":"https://api.github.com/users/Mironor/events{/privacy}","received_events_url":"https://api.github.com/users/Mironor/received_events","type":"User","site_admin":false},"assignees":[{"login":"Mironor","id":480103,"avatar_url":"https://avatars.githubusercontent.com/u/480103?v=3","gravatar_id":"","url":"https://api.github.com/users/Mironor","html_url":"https://github.com/Mironor","followers_url":"https://api.github.com/users/Mironor/followers","following_url":"https://api.github.com/users/Mironor/following{/other_user}","gists_url":"https://api.github.com/users/Mironor/gists{/gist_id}","starred_url":"https://api.github.com/users/Mironor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mironor/subscriptions","organizations_url":"https://api.github.com/users/Mironor/orgs","repos_url":"https://api.github.com/users/Mironor/repos","events_url":"https://api.github.com/users/Mironor/events{/privacy}","received_events_url":"https://api.github.com/users/Mironor/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues/23/comments","statuses_url":"https://api.github.com/repos/ONSdigital/address-index-data/statuses/3dcd23ce6511e7b0a9be1508fccfa23e77a54351","head":{"label":"ONSdigital:feature/nag-csv-read","ref":"feature/nag-csv-read","sha":"3dcd23ce6511e7b0a9be1508fccfa23e77a54351","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":71133628,"name":"address-index-data","full_name":"ONSdigital/address-index-data","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/address-index-data","description":null,"fork":false,"url":"https://api.github.com/repos/ONSdigital/address-index-data","forks_url":"https://api.github.com/repos/ONSdigital/address-index-data/forks","keys_url":"https://api.github.com/repos/ONSdigital/address-index-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/address-index-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/address-index-data/teams","hooks_url":"https://api.github.com/repos/ONSdigital/address-index-data/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/address-index-data/events","assignees_url":"https://api.github.com/repos/ONSdigital/address-index-data/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/address-index-data/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/address-index-data/tags","blobs_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/address-index-data/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/address-index-data/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/address-index-data/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/address-index-data/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/address-index-data/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/address-index-data/subscription","commits_url":"https://api.github.com/repos/ONSdigital/address-index-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/address-index-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/address-index-data/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/address-index-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/address-index-data/merges","archive_url":"https://api.github.com/repos/ONSdigital/address-index-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/address-index-data/downloads","issues_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/address-index-data/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/address-index-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/address-index-data/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/address-index-data/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/address-index-data/deployments","created_at":"2016-10-17T12:00:25Z","updated_at":"2016-11-16T16:10:24Z","pushed_at":"2016-11-29T09:19:40Z","git_url":"git://github.com/ONSdigital/address-index-data.git","ssh_url":"git@github.com:ONSdigital/address-index-data.git","clone_url":"https://github.com/ONSdigital/address-index-data.git","svn_url":"https://github.com/ONSdigital/address-index-data","homepage":null,"size":234,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"ONSdigital:develop","ref":"develop","sha":"15cdf7ef2924849c46617996a46d8bdaad8c6030","user":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":71133628,"name":"address-index-data","full_name":"ONSdigital/address-index-data","owner":{"login":"ONSdigital","id":6865137,"avatar_url":"https://avatars.githubusercontent.com/u/6865137?v=3","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/address-index-data","description":null,"fork":false,"url":"https://api.github.com/repos/ONSdigital/address-index-data","forks_url":"https://api.github.com/repos/ONSdigital/address-index-data/forks","keys_url":"https://api.github.com/repos/ONSdigital/address-index-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/address-index-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/address-index-data/teams","hooks_url":"https://api.github.com/repos/ONSdigital/address-index-data/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/address-index-data/events","assignees_url":"https://api.github.com/repos/ONSdigital/address-index-data/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/address-index-data/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/address-index-data/tags","blobs_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/address-index-data/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/address-index-data/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/address-index-data/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/address-index-data/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/address-index-data/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/address-index-data/subscription","commits_url":"https://api.github.com/repos/ONSdigital/address-index-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/address-index-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/address-index-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/address-index-data/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/address-index-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/address-index-data/merges","archive_url":"https://api.github.com/repos/ONSdigital/address-index-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/address-index-data/downloads","issues_url":"https://api.github.com/repos/ONSdigital/address-index-data/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/address-index-data/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/address-index-data/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/address-index-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/address-index-data/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/address-index-data/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/address-index-data/deployments","created_at":"2016-10-17T12:00:25Z","updated_at":"2016-11-16T16:10:24Z","pushed_at":"2016-11-29T09:19:40Z","git_url":"git://github.com/ONSdigital/address-index-data.git","ssh_url":"git@github.com:ONSdigital/address-index-data.git","clone_url":"https://github.com/ONSdigital/address-index-data.git","svn_url":"https://github.com/ONSdigital/address-index-data","homepage":null,"size":234,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23"},"html":{"href":"https://github.com/ONSdigital/address-index-data/pull/23"},"issue":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/issues/23"},"comments":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/address-index-data/statuses/3dcd23ce6511e7b0a9be1508fccfa23e77a54351"}}}}
{"actor":{"display_login":"Mironor"}}