{"action":"created","comment":{"url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/comments/64808320","id":64808320,"diff_hunk":"@@ -0,0 +1,67 @@\n+package nl.tudelft.pl2016gr2.dao;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertSame;\n+import static org.junit.Assert.assertTrue;\n+\n+import nl.tudelft.pl2016gr2.model.Annotation;\n+import org.junit.Before;\n+import org.junit.Test;\n+\n+import java.util.ArrayList;\n+import java.util.Collection;\n+import java.util.stream.Stream;\n+\n+@SuppressWarnings({\"MemberName\", \"AbbreviationAsWordInName\"})\n+public class AnnotationDAOTest {\n+\n+  AnnotationDAO dao;\n+  Annotation a1 = new Annotation();\n+  Annotation a2 = new Annotation();\n+  Annotation a3 = new Annotation();\n+  Annotation a4 = new Annotation();\n+\n+  /**\n+   * Setups up the {@link #dao} with the above test annotations.\n+   */\n+  @Before\n+  public void setup() {\n+\n+    a1.specimenId = \"a1\";\n+    a2.specimenId = \"a2\";\n+    a3.specimenId = \"a3\";\n+    a4.specimenId = \"a4\";\n+\n+    Collection<Annotation> testAnnotations = new ArrayList<>();\n+\n+    testAnnotations.add(a1);\n+    testAnnotations.add(a2);\n+    testAnnotations.add(a3);\n+    testAnnotations.add(a4);\n+\n+    dao = new AnnotationDAO(testAnnotations);\n+  }\n+\n+  @Test\n+  public void testgetAnnotation() throws Exception {\n+","path":"PL2/PL2-shared/src/test/java/nl/tudelft/pl2016gr2/dao/AnnotationDAOTest.java","position":47,"original_position":47,"commit_id":"c84380bf1b73f23370048aa50c222ff122e3d792","original_commit_id":"c84380bf1b73f23370048aa50c222ff122e3d792","user":{"login":"Pathemeous","id":9341897,"avatar_url":"https://avatars.githubusercontent.com/u/9341897?v=3","gravatar_id":"","url":"https://api.github.com/users/Pathemeous","html_url":"https://github.com/Pathemeous","followers_url":"https://api.github.com/users/Pathemeous/followers","following_url":"https://api.github.com/users/Pathemeous/following{/other_user}","gists_url":"https://api.github.com/users/Pathemeous/gists{/gist_id}","starred_url":"https://api.github.com/users/Pathemeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pathemeous/subscriptions","organizations_url":"https://api.github.com/users/Pathemeous/orgs","repos_url":"https://api.github.com/users/Pathemeous/repos","events_url":"https://api.github.com/users/Pathemeous/events{/privacy}","received_events_url":"https://api.github.com/users/Pathemeous/received_events","type":"User","site_admin":false},"body":"Unnecessary whitespace.","created_at":"2016-05-26T19:44:30Z","updated_at":"2016-05-26T19:44:30Z","html_url":"https://github.com/ProgrammingLife2016/PL2-2016/pull/134#discussion_r64808320","pull_request_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/comments/64808320"},"html":{"href":"https://github.com/ProgrammingLife2016/PL2-2016/pull/134#discussion_r64808320"},"pull_request":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134","id":71565354,"html_url":"https://github.com/ProgrammingLife2016/PL2-2016/pull/134","diff_url":"https://github.com/ProgrammingLife2016/PL2-2016/pull/134.diff","patch_url":"https://github.com/ProgrammingLife2016/PL2-2016/pull/134.patch","issue_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/134","number":134,"state":"open","locked":false,"title":"add AnnotationDAOTest","user":{"login":"justinvdk","id":9844285,"avatar_url":"https://avatars.githubusercontent.com/u/9844285?v=3","gravatar_id":"","url":"https://api.github.com/users/justinvdk","html_url":"https://github.com/justinvdk","followers_url":"https://api.github.com/users/justinvdk/followers","following_url":"https://api.github.com/users/justinvdk/following{/other_user}","gists_url":"https://api.github.com/users/justinvdk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinvdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinvdk/subscriptions","organizations_url":"https://api.github.com/users/justinvdk/orgs","repos_url":"https://api.github.com/users/justinvdk/repos","events_url":"https://api.github.com/users/justinvdk/events{/privacy}","received_events_url":"https://api.github.com/users/justinvdk/received_events","type":"User","site_admin":false},"body":"This PR adds simple tests for the AnnotationDAO class","created_at":"2016-05-26T14:29:10Z","updated_at":"2016-05-26T19:44:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abc715bc4ccf4ebf39d29ea07706cff3463dedb0","assignee":null,"milestone":{"url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/milestones/6","html_url":"https://github.com/ProgrammingLife2016/PL2-2016/milestones/%235","labels_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/milestones/6/labels","id":1722312,"number":6,"title":"#5","description":"","creator":{"login":"Pathemeous","id":9341897,"avatar_url":"https://avatars.githubusercontent.com/u/9341897?v=3","gravatar_id":"","url":"https://api.github.com/users/Pathemeous","html_url":"https://github.com/Pathemeous","followers_url":"https://api.github.com/users/Pathemeous/followers","following_url":"https://api.github.com/users/Pathemeous/following{/other_user}","gists_url":"https://api.github.com/users/Pathemeous/gists{/gist_id}","starred_url":"https://api.github.com/users/Pathemeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pathemeous/subscriptions","organizations_url":"https://api.github.com/users/Pathemeous/orgs","repos_url":"https://api.github.com/users/Pathemeous/repos","events_url":"https://api.github.com/users/Pathemeous/events{/privacy}","received_events_url":"https://api.github.com/users/Pathemeous/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":12,"state":"open","created_at":"2016-04-21T07:22:51Z","updated_at":"2016-05-26T16:56:25Z","due_on":"2016-05-26T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134/commits","review_comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134/comments","review_comment_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/134/comments","statuses_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/statuses/c84380bf1b73f23370048aa50c222ff122e3d792","head":{"label":"ProgrammingLife2016:test/annotation-dao","ref":"test/annotation-dao","sha":"c84380bf1b73f23370048aa50c222ff122e3d792","user":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56146085,"name":"PL2-2016","full_name":"ProgrammingLife2016/PL2-2016","owner":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProgrammingLife2016/PL2-2016","description":"Visualization tool for exploratory data analysis of DNA sequences","fork":false,"url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016","forks_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/forks","keys_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/teams","hooks_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/hooks","issue_events_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/events{/number}","events_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/events","assignees_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/assignees{/user}","branches_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/branches{/branch}","tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/tags","blobs_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/statuses/{sha}","languages_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/languages","stargazers_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/stargazers","contributors_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/contributors","subscribers_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/subscribers","subscription_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/subscription","commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/contents/{+path}","compare_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/merges","archive_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/downloads","issues_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues{/number}","pulls_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls{/number}","milestones_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/milestones{/number}","notifications_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/labels{/name}","releases_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/releases{/id}","deployments_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/deployments","created_at":"2016-04-13T11:28:23Z","updated_at":"2016-05-24T22:31:27Z","pushed_at":"2016-05-26T19:39:42Z","git_url":"git://github.com/ProgrammingLife2016/PL2-2016.git","ssh_url":"git@github.com:ProgrammingLife2016/PL2-2016.git","clone_url":"https://github.com/ProgrammingLife2016/PL2-2016.git","svn_url":"https://github.com/ProgrammingLife2016/PL2-2016","homepage":"","size":4388,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":3,"default_branch":"dev"}},"base":{"label":"ProgrammingLife2016:dev","ref":"dev","sha":"8a84f83f69730fd118ac0ac9536e0a0dafc0c2af","user":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56146085,"name":"PL2-2016","full_name":"ProgrammingLife2016/PL2-2016","owner":{"login":"ProgrammingLife2016","id":17279081,"avatar_url":"https://avatars.githubusercontent.com/u/17279081?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingLife2016","html_url":"https://github.com/ProgrammingLife2016","followers_url":"https://api.github.com/users/ProgrammingLife2016/followers","following_url":"https://api.github.com/users/ProgrammingLife2016/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingLife2016/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingLife2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingLife2016/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingLife2016/orgs","repos_url":"https://api.github.com/users/ProgrammingLife2016/repos","events_url":"https://api.github.com/users/ProgrammingLife2016/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingLife2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProgrammingLife2016/PL2-2016","description":"Visualization tool for exploratory data analysis of DNA sequences","fork":false,"url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016","forks_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/forks","keys_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/teams","hooks_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/hooks","issue_events_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/events{/number}","events_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/events","assignees_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/assignees{/user}","branches_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/branches{/branch}","tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/tags","blobs_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/statuses/{sha}","languages_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/languages","stargazers_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/stargazers","contributors_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/contributors","subscribers_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/subscribers","subscription_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/subscription","commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/contents/{+path}","compare_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/merges","archive_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/downloads","issues_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues{/number}","pulls_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls{/number}","milestones_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/milestones{/number}","notifications_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/labels{/name}","releases_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/releases{/id}","deployments_url":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/deployments","created_at":"2016-04-13T11:28:23Z","updated_at":"2016-05-24T22:31:27Z","pushed_at":"2016-05-26T19:39:42Z","git_url":"git://github.com/ProgrammingLife2016/PL2-2016.git","ssh_url":"git@github.com:ProgrammingLife2016/PL2-2016.git","clone_url":"https://github.com/ProgrammingLife2016/PL2-2016.git","svn_url":"https://github.com/ProgrammingLife2016/PL2-2016","homepage":"","size":4388,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":3,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134"},"html":{"href":"https://github.com/ProgrammingLife2016/PL2-2016/pull/134"},"issue":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/134"},"comments":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/ProgrammingLife2016/PL2-2016/statuses/c84380bf1b73f23370048aa50c222ff122e3d792"}}}}
{"actor":{"display_login":"Pathemeous"}}