{"action":"created","comment":{"url":"https://api.github.com/repos/sniffy/sniffy/pulls/comments/61686316","id":61686316,"diff_hunk":"@@ -0,0 +1,181 @@\n+package io.sniffy.socket;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.mockito.Mock;\n+import org.powermock.core.classloader.annotations.PrepareForTest;\n+import org.powermock.modules.junit4.PowerMockRunner;\n+\n+import java.io.FileDescriptor;\n+import java.io.IOException;\n+import java.net.InetAddress;\n+import java.net.SocketImpl;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.fail;\n+import static org.mockito.Matchers.anyInt;\n+import static org.powermock.api.mockito.PowerMockito.*;\n+\n+@RunWith(PowerMockRunner.class)\n+@PrepareForTest(SocketImpl.class)\n+public class SnifferSocketImplTest {\n+\n+    @Mock\n+    private SocketImpl delegate;\n+\n+    private SnifferSocketImpl sniffySocket;\n+\n+    @Before\n+    public void createSniffySocket() {\n+        sniffySocket = new SnifferSocketImpl(delegate);\n+    }\n+\n+    @Test\n+    public void testSendUrgentData() throws Exception {","path":"src/test/java/io/sniffy/socket/SnifferSocketImplTest.java","position":35,"original_position":35,"commit_id":"658af4134de8071e9a668658ef53ef4cb81dc4cd","original_commit_id":"658af4134de8071e9a668658ef53ef4cb81dc4cd","user":{"login":"bedrin","id":4654384,"avatar_url":"https://avatars.githubusercontent.com/u/4654384?v=3","gravatar_id":"","url":"https://api.github.com/users/bedrin","html_url":"https://github.com/bedrin","followers_url":"https://api.github.com/users/bedrin/followers","following_url":"https://api.github.com/users/bedrin/following{/other_user}","gists_url":"https://api.github.com/users/bedrin/gists{/gist_id}","starred_url":"https://api.github.com/users/bedrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedrin/subscriptions","organizations_url":"https://api.github.com/users/bedrin/orgs","repos_url":"https://api.github.com/users/bedrin/repos","events_url":"https://api.github.com/users/bedrin/events{/privacy}","received_events_url":"https://api.github.com/users/bedrin/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [JUnit tests should include assert() or fail()](https://www.codacy.com/app/sniffy/sniffy/file/2496696930/issues/source?bid=3005960&fileBranchId=3034483#l35)","created_at":"2016-05-01T12:16:01Z","updated_at":"2016-05-01T12:16:01Z","html_url":"https://github.com/sniffy/sniffy/pull/106#discussion_r61686316","pull_request_url":"https://api.github.com/repos/sniffy/sniffy/pulls/106","_links":{"self":{"href":"https://api.github.com/repos/sniffy/sniffy/pulls/comments/61686316"},"html":{"href":"https://github.com/sniffy/sniffy/pull/106#discussion_r61686316"},"pull_request":{"href":"https://api.github.com/repos/sniffy/sniffy/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/sniffy/sniffy/pulls/106","id":54300145,"html_url":"https://github.com/sniffy/sniffy/pull/106","diff_url":"https://github.com/sniffy/sniffy/pull/106.diff","patch_url":"https://github.com/sniffy/sniffy/pull/106.patch","issue_url":"https://api.github.com/repos/sniffy/sniffy/issues/106","number":106,"state":"open","locked":false,"title":"Feature/issue 89 socket impl factory","user":{"login":"bedrin","id":4654384,"avatar_url":"https://avatars.githubusercontent.com/u/4654384?v=3","gravatar_id":"","url":"https://api.github.com/users/bedrin","html_url":"https://github.com/bedrin","followers_url":"https://api.github.com/users/bedrin/followers","following_url":"https://api.github.com/users/bedrin/following{/other_user}","gists_url":"https://api.github.com/users/bedrin/gists{/gist_id}","starred_url":"https://api.github.com/users/bedrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedrin/subscriptions","organizations_url":"https://api.github.com/users/bedrin/orgs","repos_url":"https://api.github.com/users/bedrin/repos","events_url":"https://api.github.com/users/bedrin/events{/privacy}","received_events_url":"https://api.github.com/users/bedrin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-21T20:38:19Z","updated_at":"2016-05-01T12:16:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cedbc15b89324ddc1f63a2c0aeb6879fff2485a0","assignee":{"login":"bedrin","id":4654384,"avatar_url":"https://avatars.githubusercontent.com/u/4654384?v=3","gravatar_id":"","url":"https://api.github.com/users/bedrin","html_url":"https://github.com/bedrin","followers_url":"https://api.github.com/users/bedrin/followers","following_url":"https://api.github.com/users/bedrin/following{/other_user}","gists_url":"https://api.github.com/users/bedrin/gists{/gist_id}","starred_url":"https://api.github.com/users/bedrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedrin/subscriptions","organizations_url":"https://api.github.com/users/bedrin/orgs","repos_url":"https://api.github.com/users/bedrin/repos","events_url":"https://api.github.com/users/bedrin/events{/privacy}","received_events_url":"https://api.github.com/users/bedrin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sniffy/sniffy/milestones/19","html_url":"https://github.com/sniffy/sniffy/milestones/3.1","labels_url":"https://api.github.com/repos/sniffy/sniffy/milestones/19/labels","id":1434085,"number":19,"title":"3.1","description":"","creator":{"login":"bedrin","id":4654384,"avatar_url":"https://avatars.githubusercontent.com/u/4654384?v=3","gravatar_id":"","url":"https://api.github.com/users/bedrin","html_url":"https://github.com/bedrin","followers_url":"https://api.github.com/users/bedrin/followers","following_url":"https://api.github.com/users/bedrin/following{/other_user}","gists_url":"https://api.github.com/users/bedrin/gists{/gist_id}","starred_url":"https://api.github.com/users/bedrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedrin/subscriptions","organizations_url":"https://api.github.com/users/bedrin/orgs","repos_url":"https://api.github.com/users/bedrin/repos","events_url":"https://api.github.com/users/bedrin/events{/privacy}","received_events_url":"https://api.github.com/users/bedrin/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":0,"state":"open","created_at":"2015-11-29T19:43:50Z","updated_at":"2016-04-29T15:57:40Z","due_on":"2016-04-30T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/sniffy/sniffy/pulls/106/commits","review_comments_url":"https://api.github.com/repos/sniffy/sniffy/pulls/106/comments","review_comment_url":"https://api.github.com/repos/sniffy/sniffy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sniffy/sniffy/issues/106/comments","statuses_url":"https://api.github.com/repos/sniffy/sniffy/statuses/658af4134de8071e9a668658ef53ef4cb81dc4cd","head":{"label":"sniffy:feature/issue-89-socket-impl-factory","ref":"feature/issue-89-socket-impl-factory","sha":"658af4134de8071e9a668658ef53ef4cb81dc4cd","user":{"login":"sniffy","id":15713178,"avatar_url":"https://avatars.githubusercontent.com/u/15713178?v=3","gravatar_id":"","url":"https://api.github.com/users/sniffy","html_url":"https://github.com/sniffy","followers_url":"https://api.github.com/users/sniffy/followers","following_url":"https://api.github.com/users/sniffy/following{/other_user}","gists_url":"https://api.github.com/users/sniffy/gists{/gist_id}","starred_url":"https://api.github.com/users/sniffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sniffy/subscriptions","organizations_url":"https://api.github.com/users/sniffy/orgs","repos_url":"https://api.github.com/users/sniffy/repos","events_url":"https://api.github.com/users/sniffy/events{/privacy}","received_events_url":"https://api.github.com/users/sniffy/received_events","type":"Organization","site_admin":false},"repo":{"id":27785546,"name":"sniffy","full_name":"sniffy/sniffy","owner":{"login":"sniffy","id":15713178,"avatar_url":"https://avatars.githubusercontent.com/u/15713178?v=3","gravatar_id":"","url":"https://api.github.com/users/sniffy","html_url":"https://github.com/sniffy","followers_url":"https://api.github.com/users/sniffy/followers","following_url":"https://api.github.com/users/sniffy/following{/other_user}","gists_url":"https://api.github.com/users/sniffy/gists{/gist_id}","starred_url":"https://api.github.com/users/sniffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sniffy/subscriptions","organizations_url":"https://api.github.com/users/sniffy/orgs","repos_url":"https://api.github.com/users/sniffy/repos","events_url":"https://api.github.com/users/sniffy/events{/privacy}","received_events_url":"https://api.github.com/users/sniffy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sniffy/sniffy","description":"Sniffy","fork":false,"url":"https://api.github.com/repos/sniffy/sniffy","forks_url":"https://api.github.com/repos/sniffy/sniffy/forks","keys_url":"https://api.github.com/repos/sniffy/sniffy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sniffy/sniffy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sniffy/sniffy/teams","hooks_url":"https://api.github.com/repos/sniffy/sniffy/hooks","issue_events_url":"https://api.github.com/repos/sniffy/sniffy/issues/events{/number}","events_url":"https://api.github.com/repos/sniffy/sniffy/events","assignees_url":"https://api.github.com/repos/sniffy/sniffy/assignees{/user}","branches_url":"https://api.github.com/repos/sniffy/sniffy/branches{/branch}","tags_url":"https://api.github.com/repos/sniffy/sniffy/tags","blobs_url":"https://api.github.com/repos/sniffy/sniffy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sniffy/sniffy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sniffy/sniffy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sniffy/sniffy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sniffy/sniffy/statuses/{sha}","languages_url":"https://api.github.com/repos/sniffy/sniffy/languages","stargazers_url":"https://api.github.com/repos/sniffy/sniffy/stargazers","contributors_url":"https://api.github.com/repos/sniffy/sniffy/contributors","subscribers_url":"https://api.github.com/repos/sniffy/sniffy/subscribers","subscription_url":"https://api.github.com/repos/sniffy/sniffy/subscription","commits_url":"https://api.github.com/repos/sniffy/sniffy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sniffy/sniffy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sniffy/sniffy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sniffy/sniffy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sniffy/sniffy/contents/{+path}","compare_url":"https://api.github.com/repos/sniffy/sniffy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sniffy/sniffy/merges","archive_url":"https://api.github.com/repos/sniffy/sniffy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sniffy/sniffy/downloads","issues_url":"https://api.github.com/repos/sniffy/sniffy/issues{/number}","pulls_url":"https://api.github.com/repos/sniffy/sniffy/pulls{/number}","milestones_url":"https://api.github.com/repos/sniffy/sniffy/milestones{/number}","notifications_url":"https://api.github.com/repos/sniffy/sniffy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sniffy/sniffy/labels{/name}","releases_url":"https://api.github.com/repos/sniffy/sniffy/releases{/id}","deployments_url":"https://api.github.com/repos/sniffy/sniffy/deployments","created_at":"2014-12-09T20:28:16Z","updated_at":"2016-04-27T12:05:15Z","pushed_at":"2016-05-01T12:14:28Z","git_url":"git://github.com/sniffy/sniffy.git","ssh_url":"git@github.com:sniffy/sniffy.git","clone_url":"https://github.com/sniffy/sniffy.git","svn_url":"https://github.com/sniffy/sniffy","homepage":"http://sniffy.io/","size":3211,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":24,"forks":8,"open_issues":24,"watchers":27,"default_branch":"master"}},"base":{"label":"sniffy:develop","ref":"develop","sha":"2dfc78a34d30c1155d052571fa81b133b0a6c1bf","user":{"login":"sniffy","id":15713178,"avatar_url":"https://avatars.githubusercontent.com/u/15713178?v=3","gravatar_id":"","url":"https://api.github.com/users/sniffy","html_url":"https://github.com/sniffy","followers_url":"https://api.github.com/users/sniffy/followers","following_url":"https://api.github.com/users/sniffy/following{/other_user}","gists_url":"https://api.github.com/users/sniffy/gists{/gist_id}","starred_url":"https://api.github.com/users/sniffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sniffy/subscriptions","organizations_url":"https://api.github.com/users/sniffy/orgs","repos_url":"https://api.github.com/users/sniffy/repos","events_url":"https://api.github.com/users/sniffy/events{/privacy}","received_events_url":"https://api.github.com/users/sniffy/received_events","type":"Organization","site_admin":false},"repo":{"id":27785546,"name":"sniffy","full_name":"sniffy/sniffy","owner":{"login":"sniffy","id":15713178,"avatar_url":"https://avatars.githubusercontent.com/u/15713178?v=3","gravatar_id":"","url":"https://api.github.com/users/sniffy","html_url":"https://github.com/sniffy","followers_url":"https://api.github.com/users/sniffy/followers","following_url":"https://api.github.com/users/sniffy/following{/other_user}","gists_url":"https://api.github.com/users/sniffy/gists{/gist_id}","starred_url":"https://api.github.com/users/sniffy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sniffy/subscriptions","organizations_url":"https://api.github.com/users/sniffy/orgs","repos_url":"https://api.github.com/users/sniffy/repos","events_url":"https://api.github.com/users/sniffy/events{/privacy}","received_events_url":"https://api.github.com/users/sniffy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sniffy/sniffy","description":"Sniffy","fork":false,"url":"https://api.github.com/repos/sniffy/sniffy","forks_url":"https://api.github.com/repos/sniffy/sniffy/forks","keys_url":"https://api.github.com/repos/sniffy/sniffy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sniffy/sniffy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sniffy/sniffy/teams","hooks_url":"https://api.github.com/repos/sniffy/sniffy/hooks","issue_events_url":"https://api.github.com/repos/sniffy/sniffy/issues/events{/number}","events_url":"https://api.github.com/repos/sniffy/sniffy/events","assignees_url":"https://api.github.com/repos/sniffy/sniffy/assignees{/user}","branches_url":"https://api.github.com/repos/sniffy/sniffy/branches{/branch}","tags_url":"https://api.github.com/repos/sniffy/sniffy/tags","blobs_url":"https://api.github.com/repos/sniffy/sniffy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sniffy/sniffy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sniffy/sniffy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sniffy/sniffy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sniffy/sniffy/statuses/{sha}","languages_url":"https://api.github.com/repos/sniffy/sniffy/languages","stargazers_url":"https://api.github.com/repos/sniffy/sniffy/stargazers","contributors_url":"https://api.github.com/repos/sniffy/sniffy/contributors","subscribers_url":"https://api.github.com/repos/sniffy/sniffy/subscribers","subscription_url":"https://api.github.com/repos/sniffy/sniffy/subscription","commits_url":"https://api.github.com/repos/sniffy/sniffy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sniffy/sniffy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sniffy/sniffy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sniffy/sniffy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sniffy/sniffy/contents/{+path}","compare_url":"https://api.github.com/repos/sniffy/sniffy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sniffy/sniffy/merges","archive_url":"https://api.github.com/repos/sniffy/sniffy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sniffy/sniffy/downloads","issues_url":"https://api.github.com/repos/sniffy/sniffy/issues{/number}","pulls_url":"https://api.github.com/repos/sniffy/sniffy/pulls{/number}","milestones_url":"https://api.github.com/repos/sniffy/sniffy/milestones{/number}","notifications_url":"https://api.github.com/repos/sniffy/sniffy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sniffy/sniffy/labels{/name}","releases_url":"https://api.github.com/repos/sniffy/sniffy/releases{/id}","deployments_url":"https://api.github.com/repos/sniffy/sniffy/deployments","created_at":"2014-12-09T20:28:16Z","updated_at":"2016-04-27T12:05:15Z","pushed_at":"2016-05-01T12:14:28Z","git_url":"git://github.com/sniffy/sniffy.git","ssh_url":"git@github.com:sniffy/sniffy.git","clone_url":"https://github.com/sniffy/sniffy.git","svn_url":"https://github.com/sniffy/sniffy","homepage":"http://sniffy.io/","size":3211,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":24,"forks":8,"open_issues":24,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sniffy/sniffy/pulls/106"},"html":{"href":"https://github.com/sniffy/sniffy/pull/106"},"issue":{"href":"https://api.github.com/repos/sniffy/sniffy/issues/106"},"comments":{"href":"https://api.github.com/repos/sniffy/sniffy/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/sniffy/sniffy/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/sniffy/sniffy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sniffy/sniffy/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/sniffy/sniffy/statuses/658af4134de8071e9a668658ef53ef4cb81dc4cd"}}}}