{"action":"created","comment":{"url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/comments/92887453","pull_request_review_id":13411270,"id":92887453,"diff_hunk":"@@ -0,0 +1,38 @@\n+import countries.Country;\n+import org.junit.Test;\n+\n+import java.io.FileNotFoundException;\n+import java.util.ArrayList;\n+import java.util.HashMap;\n+\n+import static org.junit.Assert.assertEquals;\n+\n+/**\n+ * Created by melmo on 12/8/16.\n+ */\n+public class CountryTest {\n+\n+    @Test\n+    public void testImportCountries() throws FileNotFoundException {\n+        ArrayList<Country> countries = Country.importCountries(\"countries.txt\");\n+        assertEquals(\"Size of ArrayList not correct\", 241, countries.size());\n+        assertEquals(\"Abbr of first object not correct\", \"AF\", countries.get(0).getAbbr());\n+        assertEquals(\"Name of first object not correct\", \"afghanistan\", countries.get(0).getName());\n+    }\n+\n+    @Test\n+    public void testSortCountries() throws FileNotFoundException {\n+        HashMap<String , ArrayList<Country>> alphaCountries = Country.sortCountries(Country.importCountries(\"countries.txt\"));\n+        assertEquals(\"Size of HashMap not correct\", 25, alphaCountries.size());\n+        assertEquals(\"Size of ArrayList not correct\", 15, alphaCountries.get(\"a\").size());\n+        assertEquals(\"Abbr of first object not correct\", \"AF\", alphaCountries.get(\"a\").get(0).getAbbr());\n+        assertEquals(\"Name of first object not correct\", \"AF\", alphaCountries.get(\"afghanistan\").get(0).getName());\n+\n+    }\n+\n+    @Test\n+    public void testSaveSortFile(){\n+","path":"src/test/java/CountryTest.java","position":35,"original_position":35,"commit_id":"ebba267185506b8d80bc14fb27806611faaa96f2","original_commit_id":"ebba267185506b8d80bc14fb27806611faaa96f2","user":{"login":"jeffnb","id":149108,"avatar_url":"https://avatars.githubusercontent.com/u/149108?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffnb","html_url":"https://github.com/jeffnb","followers_url":"https://api.github.com/users/jeffnb/followers","following_url":"https://api.github.com/users/jeffnb/following{/other_user}","gists_url":"https://api.github.com/users/jeffnb/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffnb/subscriptions","organizations_url":"https://api.github.com/users/jeffnb/orgs","repos_url":"https://api.github.com/users/jeffnb/repos","events_url":"https://api.github.com/users/jeffnb/events{/privacy}","received_events_url":"https://api.github.com/users/jeffnb/received_events","type":"User","site_admin":false},"body":"Something should be in here.","created_at":"2016-12-16T21:16:37Z","updated_at":"2016-12-16T21:16:45Z","html_url":"https://github.com/tiy-lv-java-2016-11/country-correlation/pull/2#discussion_r92887453","pull_request_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/comments/92887453"},"html":{"href":"https://github.com/tiy-lv-java-2016-11/country-correlation/pull/2#discussion_r92887453"},"pull_request":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2","id":97584103,"html_url":"https://github.com/tiy-lv-java-2016-11/country-correlation/pull/2","diff_url":"https://github.com/tiy-lv-java-2016-11/country-correlation/pull/2.diff","patch_url":"https://github.com/tiy-lv-java-2016-11/country-correlation/pull/2.patch","issue_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/issues/2","number":2,"state":"open","locked":false,"title":"Country homework","user":{"login":"melodymoselle","id":15830497,"avatar_url":"https://avatars.githubusercontent.com/u/15830497?v=3","gravatar_id":"","url":"https://api.github.com/users/melodymoselle","html_url":"https://github.com/melodymoselle","followers_url":"https://api.github.com/users/melodymoselle/followers","following_url":"https://api.github.com/users/melodymoselle/following{/other_user}","gists_url":"https://api.github.com/users/melodymoselle/gists{/gist_id}","starred_url":"https://api.github.com/users/melodymoselle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melodymoselle/subscriptions","organizations_url":"https://api.github.com/users/melodymoselle/orgs","repos_url":"https://api.github.com/users/melodymoselle/repos","events_url":"https://api.github.com/users/melodymoselle/events{/privacy}","received_events_url":"https://api.github.com/users/melodymoselle/received_events","type":"User","site_admin":false},"body":"Didn't get to the json part.","created_at":"2016-12-12T16:21:34Z","updated_at":"2016-12-16T21:16:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5b5628a5a120e18b30fe9da0d42520cf0197341","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/issues/2/comments","statuses_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/statuses/ebba267185506b8d80bc14fb27806611faaa96f2","head":{"label":"melodymoselle:master","ref":"master","sha":"ebba267185506b8d80bc14fb27806611faaa96f2","user":{"login":"melodymoselle","id":15830497,"avatar_url":"https://avatars.githubusercontent.com/u/15830497?v=3","gravatar_id":"","url":"https://api.github.com/users/melodymoselle","html_url":"https://github.com/melodymoselle","followers_url":"https://api.github.com/users/melodymoselle/followers","following_url":"https://api.github.com/users/melodymoselle/following{/other_user}","gists_url":"https://api.github.com/users/melodymoselle/gists{/gist_id}","starred_url":"https://api.github.com/users/melodymoselle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melodymoselle/subscriptions","organizations_url":"https://api.github.com/users/melodymoselle/orgs","repos_url":"https://api.github.com/users/melodymoselle/repos","events_url":"https://api.github.com/users/melodymoselle/events{/privacy}","received_events_url":"https://api.github.com/users/melodymoselle/received_events","type":"User","site_admin":false},"repo":{"id":75975452,"name":"country-correlation","full_name":"melodymoselle/country-correlation","owner":{"login":"melodymoselle","id":15830497,"avatar_url":"https://avatars.githubusercontent.com/u/15830497?v=3","gravatar_id":"","url":"https://api.github.com/users/melodymoselle","html_url":"https://github.com/melodymoselle","followers_url":"https://api.github.com/users/melodymoselle/followers","following_url":"https://api.github.com/users/melodymoselle/following{/other_user}","gists_url":"https://api.github.com/users/melodymoselle/gists{/gist_id}","starred_url":"https://api.github.com/users/melodymoselle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melodymoselle/subscriptions","organizations_url":"https://api.github.com/users/melodymoselle/orgs","repos_url":"https://api.github.com/users/melodymoselle/repos","events_url":"https://api.github.com/users/melodymoselle/events{/privacy}","received_events_url":"https://api.github.com/users/melodymoselle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/melodymoselle/country-correlation","description":"Week 2 Weekend Homework","fork":true,"url":"https://api.github.com/repos/melodymoselle/country-correlation","forks_url":"https://api.github.com/repos/melodymoselle/country-correlation/forks","keys_url":"https://api.github.com/repos/melodymoselle/country-correlation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/melodymoselle/country-correlation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/melodymoselle/country-correlation/teams","hooks_url":"https://api.github.com/repos/melodymoselle/country-correlation/hooks","issue_events_url":"https://api.github.com/repos/melodymoselle/country-correlation/issues/events{/number}","events_url":"https://api.github.com/repos/melodymoselle/country-correlation/events","assignees_url":"https://api.github.com/repos/melodymoselle/country-correlation/assignees{/user}","branches_url":"https://api.github.com/repos/melodymoselle/country-correlation/branches{/branch}","tags_url":"https://api.github.com/repos/melodymoselle/country-correlation/tags","blobs_url":"https://api.github.com/repos/melodymoselle/country-correlation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/melodymoselle/country-correlation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/melodymoselle/country-correlation/git/refs{/sha}","trees_url":"https://api.github.com/repos/melodymoselle/country-correlation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/melodymoselle/country-correlation/statuses/{sha}","languages_url":"https://api.github.com/repos/melodymoselle/country-correlation/languages","stargazers_url":"https://api.github.com/repos/melodymoselle/country-correlation/stargazers","contributors_url":"https://api.github.com/repos/melodymoselle/country-correlation/contributors","subscribers_url":"https://api.github.com/repos/melodymoselle/country-correlation/subscribers","subscription_url":"https://api.github.com/repos/melodymoselle/country-correlation/subscription","commits_url":"https://api.github.com/repos/melodymoselle/country-correlation/commits{/sha}","git_commits_url":"https://api.github.com/repos/melodymoselle/country-correlation/git/commits{/sha}","comments_url":"https://api.github.com/repos/melodymoselle/country-correlation/comments{/number}","issue_comment_url":"https://api.github.com/repos/melodymoselle/country-correlation/issues/comments{/number}","contents_url":"https://api.github.com/repos/melodymoselle/country-correlation/contents/{+path}","compare_url":"https://api.github.com/repos/melodymoselle/country-correlation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/melodymoselle/country-correlation/merges","archive_url":"https://api.github.com/repos/melodymoselle/country-correlation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/melodymoselle/country-correlation/downloads","issues_url":"https://api.github.com/repos/melodymoselle/country-correlation/issues{/number}","pulls_url":"https://api.github.com/repos/melodymoselle/country-correlation/pulls{/number}","milestones_url":"https://api.github.com/repos/melodymoselle/country-correlation/milestones{/number}","notifications_url":"https://api.github.com/repos/melodymoselle/country-correlation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/melodymoselle/country-correlation/labels{/name}","releases_url":"https://api.github.com/repos/melodymoselle/country-correlation/releases{/id}","deployments_url":"https://api.github.com/repos/melodymoselle/country-correlation/deployments","created_at":"2016-12-08T21:11:07Z","updated_at":"2016-12-12T16:20:46Z","pushed_at":"2016-12-12T18:06:47Z","git_url":"git://github.com/melodymoselle/country-correlation.git","ssh_url":"git@github.com:melodymoselle/country-correlation.git","clone_url":"https://github.com/melodymoselle/country-correlation.git","svn_url":"https://github.com/melodymoselle/country-correlation","homepage":null,"size":134,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tiy-lv-java-2016-11:master","ref":"master","sha":"d01c0473ef8052cde07f74065be0549992e94330","user":{"login":"tiy-lv-java-2016-11","id":21226174,"avatar_url":"https://avatars.githubusercontent.com/u/21226174?v=3","gravatar_id":"","url":"https://api.github.com/users/tiy-lv-java-2016-11","html_url":"https://github.com/tiy-lv-java-2016-11","followers_url":"https://api.github.com/users/tiy-lv-java-2016-11/followers","following_url":"https://api.github.com/users/tiy-lv-java-2016-11/following{/other_user}","gists_url":"https://api.github.com/users/tiy-lv-java-2016-11/gists{/gist_id}","starred_url":"https://api.github.com/users/tiy-lv-java-2016-11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiy-lv-java-2016-11/subscriptions","organizations_url":"https://api.github.com/users/tiy-lv-java-2016-11/orgs","repos_url":"https://api.github.com/users/tiy-lv-java-2016-11/repos","events_url":"https://api.github.com/users/tiy-lv-java-2016-11/events{/privacy}","received_events_url":"https://api.github.com/users/tiy-lv-java-2016-11/received_events","type":"Organization","site_admin":false},"repo":{"id":75887920,"name":"country-correlation","full_name":"tiy-lv-java-2016-11/country-correlation","owner":{"login":"tiy-lv-java-2016-11","id":21226174,"avatar_url":"https://avatars.githubusercontent.com/u/21226174?v=3","gravatar_id":"","url":"https://api.github.com/users/tiy-lv-java-2016-11","html_url":"https://github.com/tiy-lv-java-2016-11","followers_url":"https://api.github.com/users/tiy-lv-java-2016-11/followers","following_url":"https://api.github.com/users/tiy-lv-java-2016-11/following{/other_user}","gists_url":"https://api.github.com/users/tiy-lv-java-2016-11/gists{/gist_id}","starred_url":"https://api.github.com/users/tiy-lv-java-2016-11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiy-lv-java-2016-11/subscriptions","organizations_url":"https://api.github.com/users/tiy-lv-java-2016-11/orgs","repos_url":"https://api.github.com/users/tiy-lv-java-2016-11/repos","events_url":"https://api.github.com/users/tiy-lv-java-2016-11/events{/privacy}","received_events_url":"https://api.github.com/users/tiy-lv-java-2016-11/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tiy-lv-java-2016-11/country-correlation","description":"Week 2 Weekend Homework","fork":false,"url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation","forks_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/forks","keys_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/teams","hooks_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/hooks","issue_events_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/issues/events{/number}","events_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/events","assignees_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/assignees{/user}","branches_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/branches{/branch}","tags_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/tags","blobs_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/git/refs{/sha}","trees_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/statuses/{sha}","languages_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/languages","stargazers_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/stargazers","contributors_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/contributors","subscribers_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/subscribers","subscription_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/subscription","commits_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/commits{/sha}","git_commits_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/git/commits{/sha}","comments_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/comments{/number}","issue_comment_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/issues/comments{/number}","contents_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/contents/{+path}","compare_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/merges","archive_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/downloads","issues_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/issues{/number}","pulls_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls{/number}","milestones_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/milestones{/number}","notifications_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/labels{/name}","releases_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/releases{/id}","deployments_url":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/deployments","created_at":"2016-12-08T00:35:51Z","updated_at":"2016-12-08T00:35:51Z","pushed_at":"2016-12-13T06:20:22Z","git_url":"git://github.com/tiy-lv-java-2016-11/country-correlation.git","ssh_url":"git@github.com:tiy-lv-java-2016-11/country-correlation.git","clone_url":"https://github.com/tiy-lv-java-2016-11/country-correlation.git","svn_url":"https://github.com/tiy-lv-java-2016-11/country-correlation","homepage":null,"size":130,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2"},"html":{"href":"https://github.com/tiy-lv-java-2016-11/country-correlation/pull/2"},"issue":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/issues/2"},"comments":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tiy-lv-java-2016-11/country-correlation/statuses/ebba267185506b8d80bc14fb27806611faaa96f2"}}}}
{"actor":{"display_login":"jeffnb"}}