{"action":"created","comment":{"url":"https://api.github.com/repos/is51/catan/pulls/comments/45565356","id":45565356,"diff_hunk":"@@ -1034,9 +1036,11 @@ public void shouldPassWhenBuildCityInMainStageAfterDiceThrown() throws PlayExcep\n     public void shouldPassWhenBuildingSettlementInMainStageOnlyAfterDiceThrown() throws GameException, PlayException {\n         //GIVEN\n         hex_0_0.getEdges().getTopRight().setBuilding(new Building<EdgeBuiltType>(EdgeBuiltType.ROAD, gameUser1));\n-        when(gameDao.getGameByGameId(1)).thenReturn(game);\n+        gameUser1.setResources(new Resources(1, 1, 1, 1, 0));\n+        game.setStage(GameStage.MAIN);\n         game.setDiceThrown(false);\n         allowUserToThrowDice(gameUser1);\n+        when(gameDao.getGameByGameId(1)).thenReturn(game);","path":"src/test/java/catan/services/impl/PlayServiceImplTest.java","position":25,"original_position":25,"commit_id":"5a497c3855b4b9c12d32cc116b52a65f5b3550ed","original_commit_id":"5a497c3855b4b9c12d32cc116b52a65f5b3550ed","user":{"login":"andrii-r","id":5818527,"avatar_url":"https://avatars.githubusercontent.com/u/5818527?v=3","gravatar_id":"","url":"https://api.github.com/users/andrii-r","html_url":"https://github.com/andrii-r","followers_url":"https://api.github.com/users/andrii-r/followers","following_url":"https://api.github.com/users/andrii-r/following{/other_user}","gists_url":"https://api.github.com/users/andrii-r/gists{/gist_id}","starred_url":"https://api.github.com/users/andrii-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrii-r/subscriptions","organizations_url":"https://api.github.com/users/andrii-r/orgs","repos_url":"https://api.github.com/users/andrii-r/repos","events_url":"https://api.github.com/users/andrii-r/events{/privacy}","received_events_url":"https://api.github.com/users/andrii-r/received_events","type":"User","site_admin":false},"body":"isn't it duplicates the next row?)","created_at":"2015-11-22T22:02:22Z","updated_at":"2015-11-22T22:02:22Z","html_url":"https://github.com/is51/catan/pull/35#discussion_r45565356","pull_request_url":"https://api.github.com/repos/is51/catan/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/is51/catan/pulls/comments/45565356"},"html":{"href":"https://github.com/is51/catan/pull/35#discussion_r45565356"},"pull_request":{"href":"https://api.github.com/repos/is51/catan/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/is51/catan/pulls/35","id":51453661,"html_url":"https://github.com/is51/catan/pull/35","diff_url":"https://github.com/is51/catan/pull/35.diff","patch_url":"https://github.com/is51/catan/pull/35.patch","issue_url":"https://api.github.com/repos/is51/catan/issues/35","number":35,"state":"open","locked":false,"title":"Us 65 rework available actions calc and decrease resources when buy smth","user":{"login":"ypetrenko","id":13055024,"avatar_url":"https://avatars.githubusercontent.com/u/13055024?v=3","gravatar_id":"","url":"https://api.github.com/users/ypetrenko","html_url":"https://github.com/ypetrenko","followers_url":"https://api.github.com/users/ypetrenko/followers","following_url":"https://api.github.com/users/ypetrenko/following{/other_user}","gists_url":"https://api.github.com/users/ypetrenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ypetrenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ypetrenko/subscriptions","organizations_url":"https://api.github.com/users/ypetrenko/orgs","repos_url":"https://api.github.com/users/ypetrenko/repos","events_url":"https://api.github.com/users/ypetrenko/events{/privacy}","received_events_url":"https://api.github.com/users/ypetrenko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-22T00:03:05Z","updated_at":"2015-11-22T22:02:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bf23c5fbdf9bd1e632d8011b1be6b912fce0a0d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/is51/catan/pulls/35/commits","review_comments_url":"https://api.github.com/repos/is51/catan/pulls/35/comments","review_comment_url":"https://api.github.com/repos/is51/catan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/is51/catan/issues/35/comments","statuses_url":"https://api.github.com/repos/is51/catan/statuses/5a497c3855b4b9c12d32cc116b52a65f5b3550ed","head":{"label":"is51:US-65_Rework_available_actions_calc_and_decrease_resources_when_buy_smth","ref":"US-65_Rework_available_actions_calc_and_decrease_resources_when_buy_smth","sha":"5a497c3855b4b9c12d32cc116b52a65f5b3550ed","user":{"login":"is51","id":13038634,"avatar_url":"https://avatars.githubusercontent.com/u/13038634?v=3","gravatar_id":"","url":"https://api.github.com/users/is51","html_url":"https://github.com/is51","followers_url":"https://api.github.com/users/is51/followers","following_url":"https://api.github.com/users/is51/following{/other_user}","gists_url":"https://api.github.com/users/is51/gists{/gist_id}","starred_url":"https://api.github.com/users/is51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/is51/subscriptions","organizations_url":"https://api.github.com/users/is51/orgs","repos_url":"https://api.github.com/users/is51/repos","events_url":"https://api.github.com/users/is51/events{/privacy}","received_events_url":"https://api.github.com/users/is51/received_events","type":"Organization","site_admin":false},"repo":{"id":38006336,"name":"catan","full_name":"is51/catan","owner":{"login":"is51","id":13038634,"avatar_url":"https://avatars.githubusercontent.com/u/13038634?v=3","gravatar_id":"","url":"https://api.github.com/users/is51","html_url":"https://github.com/is51","followers_url":"https://api.github.com/users/is51/followers","following_url":"https://api.github.com/users/is51/following{/other_user}","gists_url":"https://api.github.com/users/is51/gists{/gist_id}","starred_url":"https://api.github.com/users/is51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/is51/subscriptions","organizations_url":"https://api.github.com/users/is51/orgs","repos_url":"https://api.github.com/users/is51/repos","events_url":"https://api.github.com/users/is51/events{/privacy}","received_events_url":"https://api.github.com/users/is51/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/is51/catan","description":"","fork":false,"url":"https://api.github.com/repos/is51/catan","forks_url":"https://api.github.com/repos/is51/catan/forks","keys_url":"https://api.github.com/repos/is51/catan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/is51/catan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/is51/catan/teams","hooks_url":"https://api.github.com/repos/is51/catan/hooks","issue_events_url":"https://api.github.com/repos/is51/catan/issues/events{/number}","events_url":"https://api.github.com/repos/is51/catan/events","assignees_url":"https://api.github.com/repos/is51/catan/assignees{/user}","branches_url":"https://api.github.com/repos/is51/catan/branches{/branch}","tags_url":"https://api.github.com/repos/is51/catan/tags","blobs_url":"https://api.github.com/repos/is51/catan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/is51/catan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/is51/catan/git/refs{/sha}","trees_url":"https://api.github.com/repos/is51/catan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/is51/catan/statuses/{sha}","languages_url":"https://api.github.com/repos/is51/catan/languages","stargazers_url":"https://api.github.com/repos/is51/catan/stargazers","contributors_url":"https://api.github.com/repos/is51/catan/contributors","subscribers_url":"https://api.github.com/repos/is51/catan/subscribers","subscription_url":"https://api.github.com/repos/is51/catan/subscription","commits_url":"https://api.github.com/repos/is51/catan/commits{/sha}","git_commits_url":"https://api.github.com/repos/is51/catan/git/commits{/sha}","comments_url":"https://api.github.com/repos/is51/catan/comments{/number}","issue_comment_url":"https://api.github.com/repos/is51/catan/issues/comments{/number}","contents_url":"https://api.github.com/repos/is51/catan/contents/{+path}","compare_url":"https://api.github.com/repos/is51/catan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/is51/catan/merges","archive_url":"https://api.github.com/repos/is51/catan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/is51/catan/downloads","issues_url":"https://api.github.com/repos/is51/catan/issues{/number}","pulls_url":"https://api.github.com/repos/is51/catan/pulls{/number}","milestones_url":"https://api.github.com/repos/is51/catan/milestones{/number}","notifications_url":"https://api.github.com/repos/is51/catan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/is51/catan/labels{/name}","releases_url":"https://api.github.com/repos/is51/catan/releases{/id}","created_at":"2015-06-24T19:28:17Z","updated_at":"2015-06-26T22:01:06Z","pushed_at":"2015-11-22T21:42:44Z","git_url":"git://github.com/is51/catan.git","ssh_url":"git@github.com:is51/catan.git","clone_url":"https://github.com/is51/catan.git","svn_url":"https://github.com/is51/catan","homepage":null,"size":3244,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"is51:master","ref":"master","sha":"f299c8a59eda144b23a001975bcbc01f0782c20a","user":{"login":"is51","id":13038634,"avatar_url":"https://avatars.githubusercontent.com/u/13038634?v=3","gravatar_id":"","url":"https://api.github.com/users/is51","html_url":"https://github.com/is51","followers_url":"https://api.github.com/users/is51/followers","following_url":"https://api.github.com/users/is51/following{/other_user}","gists_url":"https://api.github.com/users/is51/gists{/gist_id}","starred_url":"https://api.github.com/users/is51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/is51/subscriptions","organizations_url":"https://api.github.com/users/is51/orgs","repos_url":"https://api.github.com/users/is51/repos","events_url":"https://api.github.com/users/is51/events{/privacy}","received_events_url":"https://api.github.com/users/is51/received_events","type":"Organization","site_admin":false},"repo":{"id":38006336,"name":"catan","full_name":"is51/catan","owner":{"login":"is51","id":13038634,"avatar_url":"https://avatars.githubusercontent.com/u/13038634?v=3","gravatar_id":"","url":"https://api.github.com/users/is51","html_url":"https://github.com/is51","followers_url":"https://api.github.com/users/is51/followers","following_url":"https://api.github.com/users/is51/following{/other_user}","gists_url":"https://api.github.com/users/is51/gists{/gist_id}","starred_url":"https://api.github.com/users/is51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/is51/subscriptions","organizations_url":"https://api.github.com/users/is51/orgs","repos_url":"https://api.github.com/users/is51/repos","events_url":"https://api.github.com/users/is51/events{/privacy}","received_events_url":"https://api.github.com/users/is51/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/is51/catan","description":"","fork":false,"url":"https://api.github.com/repos/is51/catan","forks_url":"https://api.github.com/repos/is51/catan/forks","keys_url":"https://api.github.com/repos/is51/catan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/is51/catan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/is51/catan/teams","hooks_url":"https://api.github.com/repos/is51/catan/hooks","issue_events_url":"https://api.github.com/repos/is51/catan/issues/events{/number}","events_url":"https://api.github.com/repos/is51/catan/events","assignees_url":"https://api.github.com/repos/is51/catan/assignees{/user}","branches_url":"https://api.github.com/repos/is51/catan/branches{/branch}","tags_url":"https://api.github.com/repos/is51/catan/tags","blobs_url":"https://api.github.com/repos/is51/catan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/is51/catan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/is51/catan/git/refs{/sha}","trees_url":"https://api.github.com/repos/is51/catan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/is51/catan/statuses/{sha}","languages_url":"https://api.github.com/repos/is51/catan/languages","stargazers_url":"https://api.github.com/repos/is51/catan/stargazers","contributors_url":"https://api.github.com/repos/is51/catan/contributors","subscribers_url":"https://api.github.com/repos/is51/catan/subscribers","subscription_url":"https://api.github.com/repos/is51/catan/subscription","commits_url":"https://api.github.com/repos/is51/catan/commits{/sha}","git_commits_url":"https://api.github.com/repos/is51/catan/git/commits{/sha}","comments_url":"https://api.github.com/repos/is51/catan/comments{/number}","issue_comment_url":"https://api.github.com/repos/is51/catan/issues/comments{/number}","contents_url":"https://api.github.com/repos/is51/catan/contents/{+path}","compare_url":"https://api.github.com/repos/is51/catan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/is51/catan/merges","archive_url":"https://api.github.com/repos/is51/catan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/is51/catan/downloads","issues_url":"https://api.github.com/repos/is51/catan/issues{/number}","pulls_url":"https://api.github.com/repos/is51/catan/pulls{/number}","milestones_url":"https://api.github.com/repos/is51/catan/milestones{/number}","notifications_url":"https://api.github.com/repos/is51/catan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/is51/catan/labels{/name}","releases_url":"https://api.github.com/repos/is51/catan/releases{/id}","created_at":"2015-06-24T19:28:17Z","updated_at":"2015-06-26T22:01:06Z","pushed_at":"2015-11-22T21:42:44Z","git_url":"git://github.com/is51/catan.git","ssh_url":"git@github.com:is51/catan.git","clone_url":"https://github.com/is51/catan.git","svn_url":"https://github.com/is51/catan","homepage":null,"size":3244,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/is51/catan/pulls/35"},"html":{"href":"https://github.com/is51/catan/pull/35"},"issue":{"href":"https://api.github.com/repos/is51/catan/issues/35"},"comments":{"href":"https://api.github.com/repos/is51/catan/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/is51/catan/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/is51/catan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/is51/catan/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/is51/catan/statuses/5a497c3855b4b9c12d32cc116b52a65f5b3550ed"}}}}