{"action":"created","issue":{"url":"https://api.github.com/repos/henri-tremblay/mytest/issues/112","labels_url":"https://api.github.com/repos/henri-tremblay/mytest/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/henri-tremblay/mytest/issues/112/comments","events_url":"https://api.github.com/repos/henri-tremblay/mytest/issues/112/events","html_url":"https://github.com/henri-tremblay/mytest/issues/112","id":82989263,"number":112,"title":"@Mock annotation to provide mock autowiring","user":{"login":"henri-tremblay","id":1216819,"avatar_url":"https://avatars.githubusercontent.com/u/1216819?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-tremblay","html_url":"https://github.com/henri-tremblay","followers_url":"https://api.github.com/users/henri-tremblay/followers","following_url":"https://api.github.com/users/henri-tremblay/following{/other_user}","gists_url":"https://api.github.com/users/henri-tremblay/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-tremblay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-tremblay/subscriptions","organizations_url":"https://api.github.com/users/henri-tremblay/orgs","repos_url":"https://api.github.com/users/henri-tremblay/repos","events_url":"https://api.github.com/users/henri-tremblay/events{/privacy}","received_events_url":"https://api.github.com/users/henri-tremblay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/core","name":"core","color":"f7c6c7"},{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/fixed","name":"fixed","color":"c7def8"},{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/major","name":"major","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"henri-tremblay","id":1216819,"avatar_url":"https://avatars.githubusercontent.com/u/1216819?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-tremblay","html_url":"https://github.com/henri-tremblay","followers_url":"https://api.github.com/users/henri-tremblay/followers","following_url":"https://api.github.com/users/henri-tremblay/following{/other_user}","gists_url":"https://api.github.com/users/henri-tremblay/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-tremblay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-tremblay/subscriptions","organizations_url":"https://api.github.com/users/henri-tremblay/orgs","repos_url":"https://api.github.com/users/henri-tremblay/repos","events_url":"https://api.github.com/users/henri-tremblay/events{/privacy}","received_events_url":"https://api.github.com/users/henri-tremblay/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/henri-tremblay/mytest/milestones/11","html_url":"https://github.com/henri-tremblay/mytest/milestones/3.2","labels_url":"https://api.github.com/repos/henri-tremblay/mytest/milestones/11/labels","id":1139060,"number":11,"title":"3.2","description":"EasyMock 3.2","creator":{"login":"henri-tremblay","id":1216819,"avatar_url":"https://avatars.githubusercontent.com/u/1216819?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-tremblay","html_url":"https://github.com/henri-tremblay","followers_url":"https://api.github.com/users/henri-tremblay/followers","following_url":"https://api.github.com/users/henri-tremblay/following{/other_user}","gists_url":"https://api.github.com/users/henri-tremblay/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-tremblay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-tremblay/subscriptions","organizations_url":"https://api.github.com/users/henri-tremblay/orgs","repos_url":"https://api.github.com/users/henri-tremblay/repos","events_url":"https://api.github.com/users/henri-tremblay/events{/privacy}","received_events_url":"https://api.github.com/users/henri-tremblay/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"closed","created_at":"2015-05-29T01:57:44Z","updated_at":"2015-05-31T03:51:28Z","due_on":"2013-07-11T04:00:00Z","closed_at":"2015-05-29T01:57:44Z"},"comments":1,"created_at":"2015-05-31T03:51:28Z","updated_at":"2015-05-31T03:51:28Z","closed_at":null,"body":"*Migrated from:* CodeHaus issue EASYMOCK-51\n*Original reporter:* Henri Tremblay\n\n---------------------------------------------------------\nSubmitted by Russell Brown.\n\nI sometimes find when testing facades or web components that I have a lot of mocks so I create the @Mock annotation and the helper to make my life even easier.\n\n"},"comment":{"url":"https://api.github.com/repos/henri-tremblay/mytest/issues/comments/107122294","html_url":"https://github.com/henri-tremblay/mytest/issues/112#issuecomment-107122294","issue_url":"https://api.github.com/repos/henri-tremblay/mytest/issues/112","id":107122294,"user":{"login":"henri-tremblay","id":1216819,"avatar_url":"https://avatars.githubusercontent.com/u/1216819?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-tremblay","html_url":"https://github.com/henri-tremblay","followers_url":"https://api.github.com/users/henri-tremblay/followers","following_url":"https://api.github.com/users/henri-tremblay/following{/other_user}","gists_url":"https://api.github.com/users/henri-tremblay/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-tremblay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-tremblay/subscriptions","organizations_url":"https://api.github.com/users/henri-tremblay/orgs","repos_url":"https://api.github.com/users/henri-tremblay/repos","events_url":"https://api.github.com/users/henri-tremblay/events{/privacy}","received_events_url":"https://api.github.com/users/henri-tremblay/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T03:51:28Z","updated_at":"2015-05-31T03:51:28Z","body":"*Original comment author:* Eduardo Simioni\n\n---------------------------------------------------------\nI'm not sure if understood this issue, but I believe it has to do with adding a support for annotations similar to Mockito ones, on tests not application code:\r\n\r\n@Mock\r\nprivate UserRepository userRepository;\r\n\r\n@InjectMocks\r\nprivate UserService service = new UserService();\r\n\r\nTo be honest, those annotations are the single reason why I switched from EasyMock to Mockito. Talking to friends I realized hat such move became very common. I always preferred EasyMock over Mockito and I'm quite sad to see it loosing ground because the lack of this functionality. I would switch immediately back to EasyMock when this support is added.\r\n\r\nI hate the Mockito way of verifying interactions which are basically duplications of the stubbing, the EasyMock strict mocks are way easier to use in this sense.\r\n\r\nIf this is not the correct issue, should I open a feature request for this?"}}