{"action":"opened","issue":{"url":"https://api.github.com/repos/mockito/mockito/issues/246","labels_url":"https://api.github.com/repos/mockito/mockito/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/mockito/mockito/issues/246/comments","events_url":"https://api.github.com/repos/mockito/mockito/issues/246/events","html_url":"https://github.com/mockito/mockito/issues/246","id":92931575,"number":246,"title":"Add flexible Matchers.is()","user":{"login":"szczepiq","id":24743,"avatar_url":"https://avatars.githubusercontent.com/u/24743?v=3","gravatar_id":"","url":"https://api.github.com/users/szczepiq","html_url":"https://github.com/szczepiq","followers_url":"https://api.github.com/users/szczepiq/followers","following_url":"https://api.github.com/users/szczepiq/following{/other_user}","gists_url":"https://api.github.com/users/szczepiq/gists{/gist_id}","starred_url":"https://api.github.com/users/szczepiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szczepiq/subscriptions","organizations_url":"https://api.github.com/users/szczepiq/orgs","repos_url":"https://api.github.com/users/szczepiq/repos","events_url":"https://api.github.com/users/szczepiq/events{/privacy}","received_events_url":"https://api.github.com/users/szczepiq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T20:22:25Z","updated_at":"2015-07-03T20:22:25Z","closed_at":null,"body":"Use case: there is a single argument matcher method that can satisfy different argument matching scenarios:\r\n\r\n1. Any instance of: is(T)\r\n2. Alias to eq(object): is(object)\r\n3. Alias to argThat(matcher): is(matcher)\r\n4. Alias to isNull(): is(null)\r\n\r\nExamples:\r\n\r\nmock.foo(is(100), is(myMatcher()));\r\nmock.bar(is(String.class), is(null));\r\n\r\nThe goal is API that is simple to use and very readable.\r\n\r\nThoughts?"}}