{"action":"created","comment":{"url":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/comments/31990709","id":31990709,"diff_hunk":"@@ -0,0 +1,335 @@\n+package orwell.proxy.udp;\n+\n+import junit.framework.AssertionFailedError;\n+import org.easymock.IAnswer;\n+import org.easymock.Mock;\n+import org.easymock.TestSubject;\n+import org.junit.After;\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.junit.runners.JUnit4;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import java.net.DatagramPacket;\n+import java.net.DatagramSocket;\n+import java.net.InetAddress;\n+\n+import static org.easymock.EasyMock.*;\n+import static org.junit.Assert.*;\n+\n+/**\n+ * Created by Michaël Ludmann on 5/26/15.\n+ */\n+@SuppressWarnings(\"unused\")\n+@RunWith(JUnit4.class)\n+public class UdpBeaconTest {\n+    private final static Logger logback = LoggerFactory.getLogger(UdpBeaconTest.class);\n+    private final static int BROADCAST_PORT = 9080;","path":"proxy-robots-module/src/test/java/orwell/proxy/udp/UdpBeaconTest.java","position":29,"original_position":29,"commit_id":"48046d45f1d9a43c608a523169953b877bd25533","original_commit_id":"5bd86b20fda42b26a4ceb785df9ae9458399d096","user":{"login":"miludmann","id":4282356,"avatar_url":"https://avatars.githubusercontent.com/u/4282356?v=3","gravatar_id":"","url":"https://api.github.com/users/miludmann","html_url":"https://github.com/miludmann","followers_url":"https://api.github.com/users/miludmann/followers","following_url":"https://api.github.com/users/miludmann/following{/other_user}","gists_url":"https://api.github.com/users/miludmann/gists{/gist_id}","starred_url":"https://api.github.com/users/miludmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miludmann/subscriptions","organizations_url":"https://api.github.com/users/miludmann/orgs","repos_url":"https://api.github.com/users/miludmann/repos","events_url":"https://api.github.com/users/miludmann/events{/privacy}","received_events_url":"https://api.github.com/users/miludmann/received_events","type":"User","site_admin":false},"body":"Well spotted! ","created_at":"2015-06-09T08:10:25Z","updated_at":"2015-06-09T08:10:25Z","html_url":"https://github.com/orwell-int/proxy-robots/pull/36#discussion_r31990709","pull_request_url":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/comments/31990709"},"html":{"href":"https://github.com/orwell-int/proxy-robots/pull/36#discussion_r31990709"},"pull_request":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36","id":36398313,"html_url":"https://github.com/orwell-int/proxy-robots/pull/36","diff_url":"https://github.com/orwell-int/proxy-robots/pull/36.diff","patch_url":"https://github.com/orwell-int/proxy-robots/pull/36.patch","issue_url":"https://api.github.com/repos/orwell-int/proxy-robots/issues/36","number":36,"state":"open","locked":false,"title":"Implement UDP discovery to get IP and push/sub info from server-game using UDP broadcast","user":{"login":"miludmann","id":4282356,"avatar_url":"https://avatars.githubusercontent.com/u/4282356?v=3","gravatar_id":"","url":"https://api.github.com/users/miludmann","html_url":"https://github.com/miludmann","followers_url":"https://api.github.com/users/miludmann/followers","following_url":"https://api.github.com/users/miludmann/following{/other_user}","gists_url":"https://api.github.com/users/miludmann/gists{/gist_id}","starred_url":"https://api.github.com/users/miludmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miludmann/subscriptions","organizations_url":"https://api.github.com/users/miludmann/orgs","repos_url":"https://api.github.com/users/miludmann/repos","events_url":"https://api.github.com/users/miludmann/events{/privacy}","received_events_url":"https://api.github.com/users/miludmann/received_events","type":"User","site_admin":false},"body":"+ some name refactoring and minor code cleanunp\r\n+ Put default template of configuration.xml instead of a real config\r\n+ Proxy can now start before server-game, order does not matter anymore\r\n+ Implement timeouts","created_at":"2015-05-28T11:51:08Z","updated_at":"2015-06-09T08:10:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8de7b5b8b8e2c027feba56174b842db1aba54a78","assignee":{"login":"dchilot","id":2634447,"avatar_url":"https://avatars.githubusercontent.com/u/2634447?v=3","gravatar_id":"","url":"https://api.github.com/users/dchilot","html_url":"https://github.com/dchilot","followers_url":"https://api.github.com/users/dchilot/followers","following_url":"https://api.github.com/users/dchilot/following{/other_user}","gists_url":"https://api.github.com/users/dchilot/gists{/gist_id}","starred_url":"https://api.github.com/users/dchilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchilot/subscriptions","organizations_url":"https://api.github.com/users/dchilot/orgs","repos_url":"https://api.github.com/users/dchilot/repos","events_url":"https://api.github.com/users/dchilot/events{/privacy}","received_events_url":"https://api.github.com/users/dchilot/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/orwell-int/proxy-robots/milestones/1","html_url":"https://github.com/orwell-int/proxy-robots/milestones/Implement%20a%20first%20game%20mode%20for%20a%20playable%20prototype","labels_url":"https://api.github.com/repos/orwell-int/proxy-robots/milestones/1/labels","id":711450,"number":1,"title":"Implement a first game mode for a playable prototype","description":"","creator":{"login":"miludmann","id":4282356,"avatar_url":"https://avatars.githubusercontent.com/u/4282356?v=3","gravatar_id":"","url":"https://api.github.com/users/miludmann","html_url":"https://github.com/miludmann","followers_url":"https://api.github.com/users/miludmann/followers","following_url":"https://api.github.com/users/miludmann/following{/other_user}","gists_url":"https://api.github.com/users/miludmann/gists{/gist_id}","starred_url":"https://api.github.com/users/miludmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miludmann/subscriptions","organizations_url":"https://api.github.com/users/miludmann/orgs","repos_url":"https://api.github.com/users/miludmann/repos","events_url":"https://api.github.com/users/miludmann/events{/privacy}","received_events_url":"https://api.github.com/users/miludmann/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":15,"state":"open","created_at":"2014-07-06T13:54:38Z","updated_at":"2015-06-07T17:13:54Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36/commits","review_comments_url":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36/comments","review_comment_url":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/orwell-int/proxy-robots/issues/36/comments","statuses_url":"https://api.github.com/repos/orwell-int/proxy-robots/statuses/48046d45f1d9a43c608a523169953b877bd25533","head":{"label":"miludmann:master","ref":"master","sha":"48046d45f1d9a43c608a523169953b877bd25533","user":{"login":"miludmann","id":4282356,"avatar_url":"https://avatars.githubusercontent.com/u/4282356?v=3","gravatar_id":"","url":"https://api.github.com/users/miludmann","html_url":"https://github.com/miludmann","followers_url":"https://api.github.com/users/miludmann/followers","following_url":"https://api.github.com/users/miludmann/following{/other_user}","gists_url":"https://api.github.com/users/miludmann/gists{/gist_id}","starred_url":"https://api.github.com/users/miludmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miludmann/subscriptions","organizations_url":"https://api.github.com/users/miludmann/orgs","repos_url":"https://api.github.com/users/miludmann/repos","events_url":"https://api.github.com/users/miludmann/events{/privacy}","received_events_url":"https://api.github.com/users/miludmann/received_events","type":"User","site_admin":false},"repo":{"id":9980913,"name":"proxy-robots","full_name":"miludmann/proxy-robots","owner":{"login":"miludmann","id":4282356,"avatar_url":"https://avatars.githubusercontent.com/u/4282356?v=3","gravatar_id":"","url":"https://api.github.com/users/miludmann","html_url":"https://github.com/miludmann","followers_url":"https://api.github.com/users/miludmann/followers","following_url":"https://api.github.com/users/miludmann/following{/other_user}","gists_url":"https://api.github.com/users/miludmann/gists{/gist_id}","starred_url":"https://api.github.com/users/miludmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miludmann/subscriptions","organizations_url":"https://api.github.com/users/miludmann/orgs","repos_url":"https://api.github.com/users/miludmann/repos","events_url":"https://api.github.com/users/miludmann/events{/privacy}","received_events_url":"https://api.github.com/users/miludmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miludmann/proxy-robots","description":"Handles the communication between the server and the (real) robots.","fork":true,"url":"https://api.github.com/repos/miludmann/proxy-robots","forks_url":"https://api.github.com/repos/miludmann/proxy-robots/forks","keys_url":"https://api.github.com/repos/miludmann/proxy-robots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miludmann/proxy-robots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miludmann/proxy-robots/teams","hooks_url":"https://api.github.com/repos/miludmann/proxy-robots/hooks","issue_events_url":"https://api.github.com/repos/miludmann/proxy-robots/issues/events{/number}","events_url":"https://api.github.com/repos/miludmann/proxy-robots/events","assignees_url":"https://api.github.com/repos/miludmann/proxy-robots/assignees{/user}","branches_url":"https://api.github.com/repos/miludmann/proxy-robots/branches{/branch}","tags_url":"https://api.github.com/repos/miludmann/proxy-robots/tags","blobs_url":"https://api.github.com/repos/miludmann/proxy-robots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miludmann/proxy-robots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miludmann/proxy-robots/git/refs{/sha}","trees_url":"https://api.github.com/repos/miludmann/proxy-robots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miludmann/proxy-robots/statuses/{sha}","languages_url":"https://api.github.com/repos/miludmann/proxy-robots/languages","stargazers_url":"https://api.github.com/repos/miludmann/proxy-robots/stargazers","contributors_url":"https://api.github.com/repos/miludmann/proxy-robots/contributors","subscribers_url":"https://api.github.com/repos/miludmann/proxy-robots/subscribers","subscription_url":"https://api.github.com/repos/miludmann/proxy-robots/subscription","commits_url":"https://api.github.com/repos/miludmann/proxy-robots/commits{/sha}","git_commits_url":"https://api.github.com/repos/miludmann/proxy-robots/git/commits{/sha}","comments_url":"https://api.github.com/repos/miludmann/proxy-robots/comments{/number}","issue_comment_url":"https://api.github.com/repos/miludmann/proxy-robots/issues/comments{/number}","contents_url":"https://api.github.com/repos/miludmann/proxy-robots/contents/{+path}","compare_url":"https://api.github.com/repos/miludmann/proxy-robots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miludmann/proxy-robots/merges","archive_url":"https://api.github.com/repos/miludmann/proxy-robots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miludmann/proxy-robots/downloads","issues_url":"https://api.github.com/repos/miludmann/proxy-robots/issues{/number}","pulls_url":"https://api.github.com/repos/miludmann/proxy-robots/pulls{/number}","milestones_url":"https://api.github.com/repos/miludmann/proxy-robots/milestones{/number}","notifications_url":"https://api.github.com/repos/miludmann/proxy-robots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miludmann/proxy-robots/labels{/name}","releases_url":"https://api.github.com/repos/miludmann/proxy-robots/releases{/id}","created_at":"2013-05-10T12:23:48Z","updated_at":"2015-05-05T14:51:05Z","pushed_at":"2015-06-08T14:56:57Z","git_url":"git://github.com/miludmann/proxy-robots.git","ssh_url":"git@github.com:miludmann/proxy-robots.git","clone_url":"https://github.com/miludmann/proxy-robots.git","svn_url":"https://github.com/miludmann/proxy-robots","homepage":null,"size":1354,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"orwell-int:master","ref":"master","sha":"c2b6d0e66191901dbeb6bac4a90b88b6e43d6175","user":{"login":"orwell-int","id":4205279,"avatar_url":"https://avatars.githubusercontent.com/u/4205279?v=3","gravatar_id":"","url":"https://api.github.com/users/orwell-int","html_url":"https://github.com/orwell-int","followers_url":"https://api.github.com/users/orwell-int/followers","following_url":"https://api.github.com/users/orwell-int/following{/other_user}","gists_url":"https://api.github.com/users/orwell-int/gists{/gist_id}","starred_url":"https://api.github.com/users/orwell-int/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orwell-int/subscriptions","organizations_url":"https://api.github.com/users/orwell-int/orgs","repos_url":"https://api.github.com/users/orwell-int/repos","events_url":"https://api.github.com/users/orwell-int/events{/privacy}","received_events_url":"https://api.github.com/users/orwell-int/received_events","type":"Organization","site_admin":false},"repo":{"id":9554645,"name":"proxy-robots","full_name":"orwell-int/proxy-robots","owner":{"login":"orwell-int","id":4205279,"avatar_url":"https://avatars.githubusercontent.com/u/4205279?v=3","gravatar_id":"","url":"https://api.github.com/users/orwell-int","html_url":"https://github.com/orwell-int","followers_url":"https://api.github.com/users/orwell-int/followers","following_url":"https://api.github.com/users/orwell-int/following{/other_user}","gists_url":"https://api.github.com/users/orwell-int/gists{/gist_id}","starred_url":"https://api.github.com/users/orwell-int/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orwell-int/subscriptions","organizations_url":"https://api.github.com/users/orwell-int/orgs","repos_url":"https://api.github.com/users/orwell-int/repos","events_url":"https://api.github.com/users/orwell-int/events{/privacy}","received_events_url":"https://api.github.com/users/orwell-int/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orwell-int/proxy-robots","description":"Handles the communication between the server and the (real) robots.","fork":false,"url":"https://api.github.com/repos/orwell-int/proxy-robots","forks_url":"https://api.github.com/repos/orwell-int/proxy-robots/forks","keys_url":"https://api.github.com/repos/orwell-int/proxy-robots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orwell-int/proxy-robots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orwell-int/proxy-robots/teams","hooks_url":"https://api.github.com/repos/orwell-int/proxy-robots/hooks","issue_events_url":"https://api.github.com/repos/orwell-int/proxy-robots/issues/events{/number}","events_url":"https://api.github.com/repos/orwell-int/proxy-robots/events","assignees_url":"https://api.github.com/repos/orwell-int/proxy-robots/assignees{/user}","branches_url":"https://api.github.com/repos/orwell-int/proxy-robots/branches{/branch}","tags_url":"https://api.github.com/repos/orwell-int/proxy-robots/tags","blobs_url":"https://api.github.com/repos/orwell-int/proxy-robots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orwell-int/proxy-robots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orwell-int/proxy-robots/git/refs{/sha}","trees_url":"https://api.github.com/repos/orwell-int/proxy-robots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orwell-int/proxy-robots/statuses/{sha}","languages_url":"https://api.github.com/repos/orwell-int/proxy-robots/languages","stargazers_url":"https://api.github.com/repos/orwell-int/proxy-robots/stargazers","contributors_url":"https://api.github.com/repos/orwell-int/proxy-robots/contributors","subscribers_url":"https://api.github.com/repos/orwell-int/proxy-robots/subscribers","subscription_url":"https://api.github.com/repos/orwell-int/proxy-robots/subscription","commits_url":"https://api.github.com/repos/orwell-int/proxy-robots/commits{/sha}","git_commits_url":"https://api.github.com/repos/orwell-int/proxy-robots/git/commits{/sha}","comments_url":"https://api.github.com/repos/orwell-int/proxy-robots/comments{/number}","issue_comment_url":"https://api.github.com/repos/orwell-int/proxy-robots/issues/comments{/number}","contents_url":"https://api.github.com/repos/orwell-int/proxy-robots/contents/{+path}","compare_url":"https://api.github.com/repos/orwell-int/proxy-robots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orwell-int/proxy-robots/merges","archive_url":"https://api.github.com/repos/orwell-int/proxy-robots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orwell-int/proxy-robots/downloads","issues_url":"https://api.github.com/repos/orwell-int/proxy-robots/issues{/number}","pulls_url":"https://api.github.com/repos/orwell-int/proxy-robots/pulls{/number}","milestones_url":"https://api.github.com/repos/orwell-int/proxy-robots/milestones{/number}","notifications_url":"https://api.github.com/repos/orwell-int/proxy-robots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orwell-int/proxy-robots/labels{/name}","releases_url":"https://api.github.com/repos/orwell-int/proxy-robots/releases{/id}","created_at":"2013-04-19T21:08:47Z","updated_at":"2015-05-06T09:04:54Z","pushed_at":"2015-06-08T14:56:58Z","git_url":"git://github.com/orwell-int/proxy-robots.git","ssh_url":"git@github.com:orwell-int/proxy-robots.git","clone_url":"https://github.com/orwell-int/proxy-robots.git","svn_url":"https://github.com/orwell-int/proxy-robots","homepage":null,"size":1176,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36"},"html":{"href":"https://github.com/orwell-int/proxy-robots/pull/36"},"issue":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/issues/36"},"comments":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/orwell-int/proxy-robots/statuses/48046d45f1d9a43c608a523169953b877bd25533"}}}}