{"action":"created","comment":{"url":"https://api.github.com/repos/yegor256/netbout/pulls/comments/34221876","id":34221876,"diff_hunk":"@@ -0,0 +1,86 @@\n+/**\n+ * Copyright (c) 2009-2015, netbout.com\n+ * All rights reserved.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are PROHIBITED without prior written permission from\n+ * the author. This product may NOT be used anywhere and on any computer\n+ * except the server platform of netbout Inc. located at www.netbout.com.\n+ * Federal copyright law prohibits unauthorized reproduction by any means\n+ * and imposes fines up to $25,000 for violation. If you received\n+ * this code accidentally and without intent to use it, please report this\n+ * incident to the author by email.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n+ * SUCH DAMAGE.\n+ */\n+package com.netbout.rest;\n+\n+import com.jcabi.urn.URN;\n+import com.netbout.mock.MkBase;\n+import com.netbout.spi.Bout;\n+import org.hamcrest.MatcherAssert;\n+import org.hamcrest.Matchers;\n+import org.junit.Test;\n+import org.takes.facets.auth.Identity;\n+import org.takes.facets.auth.PsFixed;\n+import org.takes.facets.auth.TkAuth;\n+import org.takes.rq.RqFake;\n+import org.takes.rq.RqMethod;\n+import org.takes.rs.RsPrint;\n+\n+/**\n+ * Test case for {@link TkPreview}.\n+ * @author Endrigo Antonini (teamed@endrigo.com.br)\n+ * @version $Id$\n+ * @since 2.15.2\n+ * @checkstyle ClassDataAbstractionCouplingCheck (100 lines)","path":"netbout-web/src/test/java/com/netbout/rest/TkPreviewTest.java","position":47,"original_position":47,"commit_id":"f41422102a091ea662e859b1178832539e39e3d6","original_commit_id":"f41422102a091ea662e859b1178832539e39e3d6","user":{"login":"pinaf","id":1054771,"avatar_url":"https://avatars.githubusercontent.com/u/1054771?v=3","gravatar_id":"","url":"https://api.github.com/users/pinaf","html_url":"https://github.com/pinaf","followers_url":"https://api.github.com/users/pinaf/followers","following_url":"https://api.github.com/users/pinaf/following{/other_user}","gists_url":"https://api.github.com/users/pinaf/gists{/gist_id}","starred_url":"https://api.github.com/users/pinaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinaf/subscriptions","organizations_url":"https://api.github.com/users/pinaf/orgs","repos_url":"https://api.github.com/users/pinaf/repos","events_url":"https://api.github.com/users/pinaf/events{/privacy}","received_events_url":"https://api.github.com/users/pinaf/received_events","type":"User","site_admin":false},"body":"@antonini is this necessary?","created_at":"2015-07-09T03:58:09Z","updated_at":"2015-07-09T03:58:09Z","html_url":"https://github.com/yegor256/netbout/pull/734#discussion_r34221876","pull_request_url":"https://api.github.com/repos/yegor256/netbout/pulls/734","_links":{"self":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/comments/34221876"},"html":{"href":"https://github.com/yegor256/netbout/pull/734#discussion_r34221876"},"pull_request":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/734"}}},"pull_request":{"url":"https://api.github.com/repos/yegor256/netbout/pulls/734","id":39432414,"html_url":"https://github.com/yegor256/netbout/pull/734","diff_url":"https://github.com/yegor256/netbout/pull/734.diff","patch_url":"https://github.com/yegor256/netbout/pull/734.patch","issue_url":"https://api.github.com/repos/yegor256/netbout/issues/734","number":734,"state":"open","locked":false,"title":"Added preview tab (Issue #614)","user":{"login":"antonini","id":209396,"avatar_url":"https://avatars.githubusercontent.com/u/209396?v=3","gravatar_id":"","url":"https://api.github.com/users/antonini","html_url":"https://github.com/antonini","followers_url":"https://api.github.com/users/antonini/followers","following_url":"https://api.github.com/users/antonini/following{/other_user}","gists_url":"https://api.github.com/users/antonini/gists{/gist_id}","starred_url":"https://api.github.com/users/antonini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonini/subscriptions","organizations_url":"https://api.github.com/users/antonini/orgs","repos_url":"https://api.github.com/users/antonini/repos","events_url":"https://api.github.com/users/antonini/events{/privacy}","received_events_url":"https://api.github.com/users/antonini/received_events","type":"User","site_admin":false},"body":"Added preview tab. (Issue #614)\r\n\r\nAs I said on issue, this issue depends on #728 to work properly.","created_at":"2015-07-08T00:57:11Z","updated_at":"2015-07-09T03:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b095d1f6b7b6b29903f54b4706484430f7038fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yegor256/netbout/pulls/734/commits","review_comments_url":"https://api.github.com/repos/yegor256/netbout/pulls/734/comments","review_comment_url":"https://api.github.com/repos/yegor256/netbout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yegor256/netbout/issues/734/comments","statuses_url":"https://api.github.com/repos/yegor256/netbout/statuses/f41422102a091ea662e859b1178832539e39e3d6","head":{"label":"antonini:issue_614","ref":"issue_614","sha":"f41422102a091ea662e859b1178832539e39e3d6","user":{"login":"antonini","id":209396,"avatar_url":"https://avatars.githubusercontent.com/u/209396?v=3","gravatar_id":"","url":"https://api.github.com/users/antonini","html_url":"https://github.com/antonini","followers_url":"https://api.github.com/users/antonini/followers","following_url":"https://api.github.com/users/antonini/following{/other_user}","gists_url":"https://api.github.com/users/antonini/gists{/gist_id}","starred_url":"https://api.github.com/users/antonini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonini/subscriptions","organizations_url":"https://api.github.com/users/antonini/orgs","repos_url":"https://api.github.com/users/antonini/repos","events_url":"https://api.github.com/users/antonini/events{/privacy}","received_events_url":"https://api.github.com/users/antonini/received_events","type":"User","site_admin":false},"repo":{"id":36434694,"name":"netbout","full_name":"antonini/netbout","owner":{"login":"antonini","id":209396,"avatar_url":"https://avatars.githubusercontent.com/u/209396?v=3","gravatar_id":"","url":"https://api.github.com/users/antonini","html_url":"https://github.com/antonini","followers_url":"https://api.github.com/users/antonini/followers","following_url":"https://api.github.com/users/antonini/following{/other_user}","gists_url":"https://api.github.com/users/antonini/gists{/gist_id}","starred_url":"https://api.github.com/users/antonini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonini/subscriptions","organizations_url":"https://api.github.com/users/antonini/orgs","repos_url":"https://api.github.com/users/antonini/repos","events_url":"https://api.github.com/users/antonini/events{/privacy}","received_events_url":"https://api.github.com/users/antonini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antonini/netbout","description":"Private talks made easy","fork":true,"url":"https://api.github.com/repos/antonini/netbout","forks_url":"https://api.github.com/repos/antonini/netbout/forks","keys_url":"https://api.github.com/repos/antonini/netbout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antonini/netbout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antonini/netbout/teams","hooks_url":"https://api.github.com/repos/antonini/netbout/hooks","issue_events_url":"https://api.github.com/repos/antonini/netbout/issues/events{/number}","events_url":"https://api.github.com/repos/antonini/netbout/events","assignees_url":"https://api.github.com/repos/antonini/netbout/assignees{/user}","branches_url":"https://api.github.com/repos/antonini/netbout/branches{/branch}","tags_url":"https://api.github.com/repos/antonini/netbout/tags","blobs_url":"https://api.github.com/repos/antonini/netbout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antonini/netbout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antonini/netbout/git/refs{/sha}","trees_url":"https://api.github.com/repos/antonini/netbout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antonini/netbout/statuses/{sha}","languages_url":"https://api.github.com/repos/antonini/netbout/languages","stargazers_url":"https://api.github.com/repos/antonini/netbout/stargazers","contributors_url":"https://api.github.com/repos/antonini/netbout/contributors","subscribers_url":"https://api.github.com/repos/antonini/netbout/subscribers","subscription_url":"https://api.github.com/repos/antonini/netbout/subscription","commits_url":"https://api.github.com/repos/antonini/netbout/commits{/sha}","git_commits_url":"https://api.github.com/repos/antonini/netbout/git/commits{/sha}","comments_url":"https://api.github.com/repos/antonini/netbout/comments{/number}","issue_comment_url":"https://api.github.com/repos/antonini/netbout/issues/comments{/number}","contents_url":"https://api.github.com/repos/antonini/netbout/contents/{+path}","compare_url":"https://api.github.com/repos/antonini/netbout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antonini/netbout/merges","archive_url":"https://api.github.com/repos/antonini/netbout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antonini/netbout/downloads","issues_url":"https://api.github.com/repos/antonini/netbout/issues{/number}","pulls_url":"https://api.github.com/repos/antonini/netbout/pulls{/number}","milestones_url":"https://api.github.com/repos/antonini/netbout/milestones{/number}","notifications_url":"https://api.github.com/repos/antonini/netbout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antonini/netbout/labels{/name}","releases_url":"https://api.github.com/repos/antonini/netbout/releases{/id}","created_at":"2015-05-28T11:44:16Z","updated_at":"2015-05-28T11:44:17Z","pushed_at":"2015-07-08T11:28:01Z","git_url":"git://github.com/antonini/netbout.git","ssh_url":"git@github.com:antonini/netbout.git","clone_url":"https://github.com/antonini/netbout.git","svn_url":"https://github.com/antonini/netbout","homepage":"www.netbout.com","size":17306,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yegor256:master","ref":"master","sha":"86cefffdc19530739e0f8ff7daedd786ab9b88e4","user":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"repo":{"id":9580819,"name":"netbout","full_name":"yegor256/netbout","owner":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yegor256/netbout","description":"Private talks made easy","fork":false,"url":"https://api.github.com/repos/yegor256/netbout","forks_url":"https://api.github.com/repos/yegor256/netbout/forks","keys_url":"https://api.github.com/repos/yegor256/netbout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yegor256/netbout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yegor256/netbout/teams","hooks_url":"https://api.github.com/repos/yegor256/netbout/hooks","issue_events_url":"https://api.github.com/repos/yegor256/netbout/issues/events{/number}","events_url":"https://api.github.com/repos/yegor256/netbout/events","assignees_url":"https://api.github.com/repos/yegor256/netbout/assignees{/user}","branches_url":"https://api.github.com/repos/yegor256/netbout/branches{/branch}","tags_url":"https://api.github.com/repos/yegor256/netbout/tags","blobs_url":"https://api.github.com/repos/yegor256/netbout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yegor256/netbout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yegor256/netbout/git/refs{/sha}","trees_url":"https://api.github.com/repos/yegor256/netbout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yegor256/netbout/statuses/{sha}","languages_url":"https://api.github.com/repos/yegor256/netbout/languages","stargazers_url":"https://api.github.com/repos/yegor256/netbout/stargazers","contributors_url":"https://api.github.com/repos/yegor256/netbout/contributors","subscribers_url":"https://api.github.com/repos/yegor256/netbout/subscribers","subscription_url":"https://api.github.com/repos/yegor256/netbout/subscription","commits_url":"https://api.github.com/repos/yegor256/netbout/commits{/sha}","git_commits_url":"https://api.github.com/repos/yegor256/netbout/git/commits{/sha}","comments_url":"https://api.github.com/repos/yegor256/netbout/comments{/number}","issue_comment_url":"https://api.github.com/repos/yegor256/netbout/issues/comments{/number}","contents_url":"https://api.github.com/repos/yegor256/netbout/contents/{+path}","compare_url":"https://api.github.com/repos/yegor256/netbout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yegor256/netbout/merges","archive_url":"https://api.github.com/repos/yegor256/netbout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yegor256/netbout/downloads","issues_url":"https://api.github.com/repos/yegor256/netbout/issues{/number}","pulls_url":"https://api.github.com/repos/yegor256/netbout/pulls{/number}","milestones_url":"https://api.github.com/repos/yegor256/netbout/milestones{/number}","notifications_url":"https://api.github.com/repos/yegor256/netbout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yegor256/netbout/labels{/name}","releases_url":"https://api.github.com/repos/yegor256/netbout/releases{/id}","created_at":"2013-04-21T14:49:21Z","updated_at":"2015-06-22T04:06:12Z","pushed_at":"2015-07-08T11:28:42Z","git_url":"git://github.com/yegor256/netbout.git","ssh_url":"git@github.com:yegor256/netbout.git","clone_url":"https://github.com/yegor256/netbout.git","svn_url":"https://github.com/yegor256/netbout","homepage":"www.netbout.com","size":18631,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":49,"forks":11,"open_issues":49,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/734"},"html":{"href":"https://github.com/yegor256/netbout/pull/734"},"issue":{"href":"https://api.github.com/repos/yegor256/netbout/issues/734"},"comments":{"href":"https://api.github.com/repos/yegor256/netbout/issues/734/comments"},"review_comments":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/734/comments"},"review_comment":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/734/commits"},"statuses":{"href":"https://api.github.com/repos/yegor256/netbout/statuses/f41422102a091ea662e859b1178832539e39e3d6"}}}}