{"action":"created","comment":{"url":"https://api.github.com/repos/genomizer/genomizer-server/pulls/comments/31677117","id":31677117,"diff_hunk":"@@ -0,0 +1,52 @@\n+package api.commands.GenomeRelease;\n+\n+import api.commands.CommandTester;\n+import api.commands.SuperTestCommand;\n+import model.ErrorLogger;\n+import requests.GetGenomeSpecieReleasesRequest;\n+import util.Constants;\n+import util.RequestException;\n+\n+/**\n+ * Test for getting a specific genome release.\n+ *\n+ * @author c10mjn, ens11afk, c12slm\n+ * @version 1.0\n+ * 03 June 2015\n+ *\n+ */\n+public class GetSpecificGenomeTest extends SuperTestCommand {\n+\n+    private String specie;\n+    private String [] expected;\n+\n+    /**\n+     * Defines the genome release to get and the expected String to find in the\n+     * response.\n+     * @param ident\n+     * @param specie\n+     * @param expected\n+     * @param expectedResult\n+     */\n+    public GetSpecificGenomeTest(String ident, String specie, String [] expected, boolean expectedResult) {\n+        super(ident, expectedResult);\n+        this.specie = specie;\n+        this.expected = expected;\n+    }\n+\n+    @Override\n+    public void execute() {\n+        try {\n+            CommandTester.conn.sendRequest(new GetGenomeSpecieReleasesRequest(specie),\n+                    CommandTester.token, Constants.TEXT_PLAIN);\n+\n+            if (CommandTester.conn.getResponseCode() == 200) {\n+                String respBody = CommandTester.conn.getResponseBody();\n+                for (String expectedStr : expected)\n+                    super.finalResult = respBody.contains(expectedStr);","path":"genomizer-server-tester/src/api/commands/GenomeRelease/GetSpecificGenomeTest.java","position":46,"original_position":46,"commit_id":"a5dabc61bd5ae448d670fd581df0e4081f440353","original_commit_id":"a5dabc61bd5ae448d670fd581df0e4081f440353","user":{"login":"23Skidoo","id":47439,"avatar_url":"https://avatars.githubusercontent.com/u/47439?v=3","gravatar_id":"","url":"https://api.github.com/users/23Skidoo","html_url":"https://github.com/23Skidoo","followers_url":"https://api.github.com/users/23Skidoo/followers","following_url":"https://api.github.com/users/23Skidoo/following{/other_user}","gists_url":"https://api.github.com/users/23Skidoo/gists{/gist_id}","starred_url":"https://api.github.com/users/23Skidoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/23Skidoo/subscriptions","organizations_url":"https://api.github.com/users/23Skidoo/orgs","repos_url":"https://api.github.com/users/23Skidoo/repos","events_url":"https://api.github.com/users/23Skidoo/events{/privacy}","received_events_url":"https://api.github.com/users/23Skidoo/received_events","type":"User","site_admin":false},"body":"Good catch. Yes, it should be `finalResult = finalResult && someTest()`.","created_at":"2015-06-03T22:26:20Z","updated_at":"2015-06-03T22:26:20Z","html_url":"https://github.com/genomizer/genomizer-server/pull/472#discussion_r31677117","pull_request_url":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472","_links":{"self":{"href":"https://api.github.com/repos/genomizer/genomizer-server/pulls/comments/31677117"},"html":{"href":"https://github.com/genomizer/genomizer-server/pull/472#discussion_r31677117"},"pull_request":{"href":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472"}}},"pull_request":{"url":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472","id":36827762,"html_url":"https://github.com/genomizer/genomizer-server/pull/472","diff_url":"https://github.com/genomizer/genomizer-server/pull/472.diff","patch_url":"https://github.com/genomizer/genomizer-server/pull/472.patch","issue_url":"https://api.github.com/repos/genomizer/genomizer-server/issues/472","number":472,"state":"closed","locked":false,"title":"Run acceptance tests on Travis.","user":{"login":"23Skidoo","id":47439,"avatar_url":"https://avatars.githubusercontent.com/u/47439?v=3","gravatar_id":"","url":"https://api.github.com/users/23Skidoo","html_url":"https://github.com/23Skidoo","followers_url":"https://api.github.com/users/23Skidoo/followers","following_url":"https://api.github.com/users/23Skidoo/following{/other_user}","gists_url":"https://api.github.com/users/23Skidoo/gists{/gist_id}","starred_url":"https://api.github.com/users/23Skidoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/23Skidoo/subscriptions","organizations_url":"https://api.github.com/users/23Skidoo/orgs","repos_url":"https://api.github.com/users/23Skidoo/repos","events_url":"https://api.github.com/users/23Skidoo/events{/privacy}","received_events_url":"https://api.github.com/users/23Skidoo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-03T12:38:42Z","updated_at":"2015-06-03T22:26:20Z","closed_at":"2015-06-03T18:47:21Z","merged_at":"2015-06-03T18:47:21Z","merge_commit_sha":"9f517c02b3411064a4b043b52686d5e3ea6fd284","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472/commits","review_comments_url":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472/comments","review_comment_url":"https://api.github.com/repos/genomizer/genomizer-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/genomizer/genomizer-server/issues/472/comments","statuses_url":"https://api.github.com/repos/genomizer/genomizer-server/statuses/a5dabc61bd5ae448d670fd581df0e4081f440353","head":{"label":"23Skidoo:travis-acceptance","ref":"travis-acceptance","sha":"a5dabc61bd5ae448d670fd581df0e4081f440353","user":{"login":"23Skidoo","id":47439,"avatar_url":"https://avatars.githubusercontent.com/u/47439?v=3","gravatar_id":"","url":"https://api.github.com/users/23Skidoo","html_url":"https://github.com/23Skidoo","followers_url":"https://api.github.com/users/23Skidoo/followers","following_url":"https://api.github.com/users/23Skidoo/following{/other_user}","gists_url":"https://api.github.com/users/23Skidoo/gists{/gist_id}","starred_url":"https://api.github.com/users/23Skidoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/23Skidoo/subscriptions","organizations_url":"https://api.github.com/users/23Skidoo/orgs","repos_url":"https://api.github.com/users/23Skidoo/repos","events_url":"https://api.github.com/users/23Skidoo/events{/privacy}","received_events_url":"https://api.github.com/users/23Skidoo/received_events","type":"User","site_admin":false},"repo":{"id":33856528,"name":"genomizer-server","full_name":"23Skidoo/genomizer-server","owner":{"login":"23Skidoo","id":47439,"avatar_url":"https://avatars.githubusercontent.com/u/47439?v=3","gravatar_id":"","url":"https://api.github.com/users/23Skidoo","html_url":"https://github.com/23Skidoo","followers_url":"https://api.github.com/users/23Skidoo/followers","following_url":"https://api.github.com/users/23Skidoo/following{/other_user}","gists_url":"https://api.github.com/users/23Skidoo/gists{/gist_id}","starred_url":"https://api.github.com/users/23Skidoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/23Skidoo/subscriptions","organizations_url":"https://api.github.com/users/23Skidoo/orgs","repos_url":"https://api.github.com/users/23Skidoo/repos","events_url":"https://api.github.com/users/23Skidoo/events{/privacy}","received_events_url":"https://api.github.com/users/23Skidoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/23Skidoo/genomizer-server","description":"A system for storing and analyzing DNA sequences (server component).","fork":true,"url":"https://api.github.com/repos/23Skidoo/genomizer-server","forks_url":"https://api.github.com/repos/23Skidoo/genomizer-server/forks","keys_url":"https://api.github.com/repos/23Skidoo/genomizer-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/23Skidoo/genomizer-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/23Skidoo/genomizer-server/teams","hooks_url":"https://api.github.com/repos/23Skidoo/genomizer-server/hooks","issue_events_url":"https://api.github.com/repos/23Skidoo/genomizer-server/issues/events{/number}","events_url":"https://api.github.com/repos/23Skidoo/genomizer-server/events","assignees_url":"https://api.github.com/repos/23Skidoo/genomizer-server/assignees{/user}","branches_url":"https://api.github.com/repos/23Skidoo/genomizer-server/branches{/branch}","tags_url":"https://api.github.com/repos/23Skidoo/genomizer-server/tags","blobs_url":"https://api.github.com/repos/23Skidoo/genomizer-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/23Skidoo/genomizer-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/23Skidoo/genomizer-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/23Skidoo/genomizer-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/23Skidoo/genomizer-server/statuses/{sha}","languages_url":"https://api.github.com/repos/23Skidoo/genomizer-server/languages","stargazers_url":"https://api.github.com/repos/23Skidoo/genomizer-server/stargazers","contributors_url":"https://api.github.com/repos/23Skidoo/genomizer-server/contributors","subscribers_url":"https://api.github.com/repos/23Skidoo/genomizer-server/subscribers","subscription_url":"https://api.github.com/repos/23Skidoo/genomizer-server/subscription","commits_url":"https://api.github.com/repos/23Skidoo/genomizer-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/23Skidoo/genomizer-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/23Skidoo/genomizer-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/23Skidoo/genomizer-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/23Skidoo/genomizer-server/contents/{+path}","compare_url":"https://api.github.com/repos/23Skidoo/genomizer-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/23Skidoo/genomizer-server/merges","archive_url":"https://api.github.com/repos/23Skidoo/genomizer-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/23Skidoo/genomizer-server/downloads","issues_url":"https://api.github.com/repos/23Skidoo/genomizer-server/issues{/number}","pulls_url":"https://api.github.com/repos/23Skidoo/genomizer-server/pulls{/number}","milestones_url":"https://api.github.com/repos/23Skidoo/genomizer-server/milestones{/number}","notifications_url":"https://api.github.com/repos/23Skidoo/genomizer-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/23Skidoo/genomizer-server/labels{/name}","releases_url":"https://api.github.com/repos/23Skidoo/genomizer-server/releases{/id}","created_at":"2015-04-13T08:22:02Z","updated_at":"2015-05-29T12:23:54Z","pushed_at":"2015-06-03T18:47:24Z","git_url":"git://github.com/23Skidoo/genomizer-server.git","ssh_url":"git@github.com:23Skidoo/genomizer-server.git","clone_url":"https://github.com/23Skidoo/genomizer-server.git","svn_url":"https://github.com/23Skidoo/genomizer-server","homepage":"http://www8.cs.umu.se/kurser/5DV151/VT15/","size":212682,"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":"genomizer:develop","ref":"develop","sha":"2a67affe366d4dc80448a5b677f30c038e5d50cd","user":{"login":"genomizer","id":7381242,"avatar_url":"https://avatars.githubusercontent.com/u/7381242?v=3","gravatar_id":"","url":"https://api.github.com/users/genomizer","html_url":"https://github.com/genomizer","followers_url":"https://api.github.com/users/genomizer/followers","following_url":"https://api.github.com/users/genomizer/following{/other_user}","gists_url":"https://api.github.com/users/genomizer/gists{/gist_id}","starred_url":"https://api.github.com/users/genomizer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genomizer/subscriptions","organizations_url":"https://api.github.com/users/genomizer/orgs","repos_url":"https://api.github.com/users/genomizer/repos","events_url":"https://api.github.com/users/genomizer/events{/privacy}","received_events_url":"https://api.github.com/users/genomizer/received_events","type":"Organization","site_admin":false},"repo":{"id":19137589,"name":"genomizer-server","full_name":"genomizer/genomizer-server","owner":{"login":"genomizer","id":7381242,"avatar_url":"https://avatars.githubusercontent.com/u/7381242?v=3","gravatar_id":"","url":"https://api.github.com/users/genomizer","html_url":"https://github.com/genomizer","followers_url":"https://api.github.com/users/genomizer/followers","following_url":"https://api.github.com/users/genomizer/following{/other_user}","gists_url":"https://api.github.com/users/genomizer/gists{/gist_id}","starred_url":"https://api.github.com/users/genomizer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genomizer/subscriptions","organizations_url":"https://api.github.com/users/genomizer/orgs","repos_url":"https://api.github.com/users/genomizer/repos","events_url":"https://api.github.com/users/genomizer/events{/privacy}","received_events_url":"https://api.github.com/users/genomizer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/genomizer/genomizer-server","description":"A system for storing and analyzing DNA sequences (server component).","fork":false,"url":"https://api.github.com/repos/genomizer/genomizer-server","forks_url":"https://api.github.com/repos/genomizer/genomizer-server/forks","keys_url":"https://api.github.com/repos/genomizer/genomizer-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/genomizer/genomizer-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/genomizer/genomizer-server/teams","hooks_url":"https://api.github.com/repos/genomizer/genomizer-server/hooks","issue_events_url":"https://api.github.com/repos/genomizer/genomizer-server/issues/events{/number}","events_url":"https://api.github.com/repos/genomizer/genomizer-server/events","assignees_url":"https://api.github.com/repos/genomizer/genomizer-server/assignees{/user}","branches_url":"https://api.github.com/repos/genomizer/genomizer-server/branches{/branch}","tags_url":"https://api.github.com/repos/genomizer/genomizer-server/tags","blobs_url":"https://api.github.com/repos/genomizer/genomizer-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/genomizer/genomizer-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/genomizer/genomizer-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/genomizer/genomizer-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/genomizer/genomizer-server/statuses/{sha}","languages_url":"https://api.github.com/repos/genomizer/genomizer-server/languages","stargazers_url":"https://api.github.com/repos/genomizer/genomizer-server/stargazers","contributors_url":"https://api.github.com/repos/genomizer/genomizer-server/contributors","subscribers_url":"https://api.github.com/repos/genomizer/genomizer-server/subscribers","subscription_url":"https://api.github.com/repos/genomizer/genomizer-server/subscription","commits_url":"https://api.github.com/repos/genomizer/genomizer-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/genomizer/genomizer-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/genomizer/genomizer-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/genomizer/genomizer-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/genomizer/genomizer-server/contents/{+path}","compare_url":"https://api.github.com/repos/genomizer/genomizer-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/genomizer/genomizer-server/merges","archive_url":"https://api.github.com/repos/genomizer/genomizer-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/genomizer/genomizer-server/downloads","issues_url":"https://api.github.com/repos/genomizer/genomizer-server/issues{/number}","pulls_url":"https://api.github.com/repos/genomizer/genomizer-server/pulls{/number}","milestones_url":"https://api.github.com/repos/genomizer/genomizer-server/milestones{/number}","notifications_url":"https://api.github.com/repos/genomizer/genomizer-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/genomizer/genomizer-server/labels{/name}","releases_url":"https://api.github.com/repos/genomizer/genomizer-server/releases{/id}","created_at":"2014-04-25T07:18:30Z","updated_at":"2015-05-06T08:07:55Z","pushed_at":"2015-06-03T21:50:45Z","git_url":"git://github.com/genomizer/genomizer-server.git","ssh_url":"git@github.com:genomizer/genomizer-server.git","clone_url":"https://github.com/genomizer/genomizer-server.git","svn_url":"https://github.com/genomizer/genomizer-server","homepage":"http://www8.cs.umu.se/kurser/5DV151/VT15/","size":226519,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":23,"forks":4,"open_issues":23,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472"},"html":{"href":"https://github.com/genomizer/genomizer-server/pull/472"},"issue":{"href":"https://api.github.com/repos/genomizer/genomizer-server/issues/472"},"comments":{"href":"https://api.github.com/repos/genomizer/genomizer-server/issues/472/comments"},"review_comments":{"href":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472/comments"},"review_comment":{"href":"https://api.github.com/repos/genomizer/genomizer-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/genomizer/genomizer-server/pulls/472/commits"},"statuses":{"href":"https://api.github.com/repos/genomizer/genomizer-server/statuses/a5dabc61bd5ae448d670fd581df0e4081f440353"}}}}