{"action":"opened","number":367,"pull_request":{"url":"https://api.github.com/repos/mockito/mockito/pulls/367","id":61470563,"html_url":"https://github.com/mockito/mockito/pull/367","diff_url":"https://github.com/mockito/mockito/pull/367.diff","patch_url":"https://github.com/mockito/mockito/pull/367.patch","issue_url":"https://api.github.com/repos/mockito/mockito/issues/367","number":367,"state":"open","locked":false,"title":"Simplified the API to get an argument in custom Answer's","user":{"login":"ChristianSchwarz","id":1437411,"avatar_url":"https://avatars.githubusercontent.com/u/1437411?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianSchwarz","html_url":"https://github.com/ChristianSchwarz","followers_url":"https://api.github.com/users/ChristianSchwarz/followers","following_url":"https://api.github.com/users/ChristianSchwarz/following{/other_user}","gists_url":"https://api.github.com/users/ChristianSchwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianSchwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianSchwarz/subscriptions","organizations_url":"https://api.github.com/users/ChristianSchwarz/orgs","repos_url":"https://api.github.com/users/ChristianSchwarz/repos","events_url":"https://api.github.com/users/ChristianSchwarz/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianSchwarz/received_events","type":"User","site_admin":false},"body":"This pull request fixes #365 by introducing `T getArgument(int)` and deprecating `T getArgumentAt(int,Class<T>)` in type `InvocationOnMock`. This improves the readabilty of custom Answers. \r\n\r\nNow we can write: `String text = invocation.getArgument(1) ` \r\nInstead of: `String text = invocation.getArgumentAt(1,String.class) `\r\n","created_at":"2016-03-02T21:33:39Z","updated_at":"2016-03-02T21:33:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mockito/mockito/pulls/367/commits","review_comments_url":"https://api.github.com/repos/mockito/mockito/pulls/367/comments","review_comment_url":"https://api.github.com/repos/mockito/mockito/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mockito/mockito/issues/367/comments","statuses_url":"https://api.github.com/repos/mockito/mockito/statuses/d1672c3a909dd953578fd7e694674433b5d4c833","head":{"label":"ChristianSchwarz:master","ref":"master","sha":"d1672c3a909dd953578fd7e694674433b5d4c833","user":{"login":"ChristianSchwarz","id":1437411,"avatar_url":"https://avatars.githubusercontent.com/u/1437411?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianSchwarz","html_url":"https://github.com/ChristianSchwarz","followers_url":"https://api.github.com/users/ChristianSchwarz/followers","following_url":"https://api.github.com/users/ChristianSchwarz/following{/other_user}","gists_url":"https://api.github.com/users/ChristianSchwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianSchwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianSchwarz/subscriptions","organizations_url":"https://api.github.com/users/ChristianSchwarz/orgs","repos_url":"https://api.github.com/users/ChristianSchwarz/repos","events_url":"https://api.github.com/users/ChristianSchwarz/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianSchwarz/received_events","type":"User","site_admin":false},"repo":{"id":28245422,"name":"mockito","full_name":"ChristianSchwarz/mockito","owner":{"login":"ChristianSchwarz","id":1437411,"avatar_url":"https://avatars.githubusercontent.com/u/1437411?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianSchwarz","html_url":"https://github.com/ChristianSchwarz","followers_url":"https://api.github.com/users/ChristianSchwarz/followers","following_url":"https://api.github.com/users/ChristianSchwarz/following{/other_user}","gists_url":"https://api.github.com/users/ChristianSchwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianSchwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianSchwarz/subscriptions","organizations_url":"https://api.github.com/users/ChristianSchwarz/orgs","repos_url":"https://api.github.com/users/ChristianSchwarz/repos","events_url":"https://api.github.com/users/ChristianSchwarz/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianSchwarz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChristianSchwarz/mockito","description":"Mocking framework for unit tests written in Java","fork":true,"url":"https://api.github.com/repos/ChristianSchwarz/mockito","forks_url":"https://api.github.com/repos/ChristianSchwarz/mockito/forks","keys_url":"https://api.github.com/repos/ChristianSchwarz/mockito/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChristianSchwarz/mockito/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChristianSchwarz/mockito/teams","hooks_url":"https://api.github.com/repos/ChristianSchwarz/mockito/hooks","issue_events_url":"https://api.github.com/repos/ChristianSchwarz/mockito/issues/events{/number}","events_url":"https://api.github.com/repos/ChristianSchwarz/mockito/events","assignees_url":"https://api.github.com/repos/ChristianSchwarz/mockito/assignees{/user}","branches_url":"https://api.github.com/repos/ChristianSchwarz/mockito/branches{/branch}","tags_url":"https://api.github.com/repos/ChristianSchwarz/mockito/tags","blobs_url":"https://api.github.com/repos/ChristianSchwarz/mockito/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChristianSchwarz/mockito/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChristianSchwarz/mockito/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChristianSchwarz/mockito/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChristianSchwarz/mockito/statuses/{sha}","languages_url":"https://api.github.com/repos/ChristianSchwarz/mockito/languages","stargazers_url":"https://api.github.com/repos/ChristianSchwarz/mockito/stargazers","contributors_url":"https://api.github.com/repos/ChristianSchwarz/mockito/contributors","subscribers_url":"https://api.github.com/repos/ChristianSchwarz/mockito/subscribers","subscription_url":"https://api.github.com/repos/ChristianSchwarz/mockito/subscription","commits_url":"https://api.github.com/repos/ChristianSchwarz/mockito/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChristianSchwarz/mockito/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChristianSchwarz/mockito/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChristianSchwarz/mockito/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChristianSchwarz/mockito/contents/{+path}","compare_url":"https://api.github.com/repos/ChristianSchwarz/mockito/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChristianSchwarz/mockito/merges","archive_url":"https://api.github.com/repos/ChristianSchwarz/mockito/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChristianSchwarz/mockito/downloads","issues_url":"https://api.github.com/repos/ChristianSchwarz/mockito/issues{/number}","pulls_url":"https://api.github.com/repos/ChristianSchwarz/mockito/pulls{/number}","milestones_url":"https://api.github.com/repos/ChristianSchwarz/mockito/milestones{/number}","notifications_url":"https://api.github.com/repos/ChristianSchwarz/mockito/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChristianSchwarz/mockito/labels{/name}","releases_url":"https://api.github.com/repos/ChristianSchwarz/mockito/releases{/id}","deployments_url":"https://api.github.com/repos/ChristianSchwarz/mockito/deployments","created_at":"2014-12-19T20:37:25Z","updated_at":"2016-02-19T12:14:46Z","pushed_at":"2016-03-02T21:22:56Z","git_url":"git://github.com/ChristianSchwarz/mockito.git","ssh_url":"git@github.com:ChristianSchwarz/mockito.git","clone_url":"https://github.com/ChristianSchwarz/mockito.git","svn_url":"https://github.com/ChristianSchwarz/mockito","homepage":"http://mockito.org","size":60631,"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":"mockito:master","ref":"master","sha":"5ab011e72d438949469568e50bb48d8c50d8bb3e","user":{"login":"mockito","id":2054056,"avatar_url":"https://avatars.githubusercontent.com/u/2054056?v=3","gravatar_id":"","url":"https://api.github.com/users/mockito","html_url":"https://github.com/mockito","followers_url":"https://api.github.com/users/mockito/followers","following_url":"https://api.github.com/users/mockito/following{/other_user}","gists_url":"https://api.github.com/users/mockito/gists{/gist_id}","starred_url":"https://api.github.com/users/mockito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mockito/subscriptions","organizations_url":"https://api.github.com/users/mockito/orgs","repos_url":"https://api.github.com/users/mockito/repos","events_url":"https://api.github.com/users/mockito/events{/privacy}","received_events_url":"https://api.github.com/users/mockito/received_events","type":"Organization","site_admin":false},"repo":{"id":6207167,"name":"mockito","full_name":"mockito/mockito","owner":{"login":"mockito","id":2054056,"avatar_url":"https://avatars.githubusercontent.com/u/2054056?v=3","gravatar_id":"","url":"https://api.github.com/users/mockito","html_url":"https://github.com/mockito","followers_url":"https://api.github.com/users/mockito/followers","following_url":"https://api.github.com/users/mockito/following{/other_user}","gists_url":"https://api.github.com/users/mockito/gists{/gist_id}","starred_url":"https://api.github.com/users/mockito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mockito/subscriptions","organizations_url":"https://api.github.com/users/mockito/orgs","repos_url":"https://api.github.com/users/mockito/repos","events_url":"https://api.github.com/users/mockito/events{/privacy}","received_events_url":"https://api.github.com/users/mockito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mockito/mockito","description":"Mocking framework for unit tests written in Java","fork":false,"url":"https://api.github.com/repos/mockito/mockito","forks_url":"https://api.github.com/repos/mockito/mockito/forks","keys_url":"https://api.github.com/repos/mockito/mockito/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mockito/mockito/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mockito/mockito/teams","hooks_url":"https://api.github.com/repos/mockito/mockito/hooks","issue_events_url":"https://api.github.com/repos/mockito/mockito/issues/events{/number}","events_url":"https://api.github.com/repos/mockito/mockito/events","assignees_url":"https://api.github.com/repos/mockito/mockito/assignees{/user}","branches_url":"https://api.github.com/repos/mockito/mockito/branches{/branch}","tags_url":"https://api.github.com/repos/mockito/mockito/tags","blobs_url":"https://api.github.com/repos/mockito/mockito/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mockito/mockito/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mockito/mockito/git/refs{/sha}","trees_url":"https://api.github.com/repos/mockito/mockito/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mockito/mockito/statuses/{sha}","languages_url":"https://api.github.com/repos/mockito/mockito/languages","stargazers_url":"https://api.github.com/repos/mockito/mockito/stargazers","contributors_url":"https://api.github.com/repos/mockito/mockito/contributors","subscribers_url":"https://api.github.com/repos/mockito/mockito/subscribers","subscription_url":"https://api.github.com/repos/mockito/mockito/subscription","commits_url":"https://api.github.com/repos/mockito/mockito/commits{/sha}","git_commits_url":"https://api.github.com/repos/mockito/mockito/git/commits{/sha}","comments_url":"https://api.github.com/repos/mockito/mockito/comments{/number}","issue_comment_url":"https://api.github.com/repos/mockito/mockito/issues/comments{/number}","contents_url":"https://api.github.com/repos/mockito/mockito/contents/{+path}","compare_url":"https://api.github.com/repos/mockito/mockito/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mockito/mockito/merges","archive_url":"https://api.github.com/repos/mockito/mockito/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mockito/mockito/downloads","issues_url":"https://api.github.com/repos/mockito/mockito/issues{/number}","pulls_url":"https://api.github.com/repos/mockito/mockito/pulls{/number}","milestones_url":"https://api.github.com/repos/mockito/mockito/milestones{/number}","notifications_url":"https://api.github.com/repos/mockito/mockito/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mockito/mockito/labels{/name}","releases_url":"https://api.github.com/repos/mockito/mockito/releases{/id}","deployments_url":"https://api.github.com/repos/mockito/mockito/deployments","created_at":"2012-10-13T20:27:12Z","updated_at":"2016-03-02T17:30:16Z","pushed_at":"2016-03-01T17:49:19Z","git_url":"git://github.com/mockito/mockito.git","ssh_url":"git@github.com:mockito/mockito.git","clone_url":"https://github.com/mockito/mockito.git","svn_url":"https://github.com/mockito/mockito","homepage":"http://mockito.org","size":88134,"stargazers_count":2178,"watchers_count":2178,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":445,"mirror_url":null,"open_issues_count":69,"forks":445,"open_issues":69,"watchers":2178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mockito/mockito/pulls/367"},"html":{"href":"https://github.com/mockito/mockito/pull/367"},"issue":{"href":"https://api.github.com/repos/mockito/mockito/issues/367"},"comments":{"href":"https://api.github.com/repos/mockito/mockito/issues/367/comments"},"review_comments":{"href":"https://api.github.com/repos/mockito/mockito/pulls/367/comments"},"review_comment":{"href":"https://api.github.com/repos/mockito/mockito/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mockito/mockito/pulls/367/commits"},"statuses":{"href":"https://api.github.com/repos/mockito/mockito/statuses/d1672c3a909dd953578fd7e694674433b5d4c833"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":1,"changed_files":4}}