{"action":"created","issue":{"url":"https://api.github.com/repos/google/dagger/issues/186","labels_url":"https://api.github.com/repos/google/dagger/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/google/dagger/issues/186/comments","events_url":"https://api.github.com/repos/google/dagger/issues/186/events","html_url":"https://github.com/google/dagger/issues/186","id":78371512,"number":186,"title":"Unit test sample","user":{"login":"mheras","id":323266,"avatar_url":"https://avatars.githubusercontent.com/u/323266?v=3","gravatar_id":"","url":"https://api.github.com/users/mheras","html_url":"https://github.com/mheras","followers_url":"https://api.github.com/users/mheras/followers","following_url":"https://api.github.com/users/mheras/following{/other_user}","gists_url":"https://api.github.com/users/mheras/gists{/gist_id}","starred_url":"https://api.github.com/users/mheras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheras/subscriptions","organizations_url":"https://api.github.com/users/mheras/orgs","repos_url":"https://api.github.com/users/mheras/repos","events_url":"https://api.github.com/users/mheras/events{/privacy}","received_events_url":"https://api.github.com/users/mheras/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/dagger/labels/area:%20android","name":"area: android","color":"c7def8"},{"url":"https://api.github.com/repos/google/dagger/labels/area:%20documentation","name":"area: documentation","color":"bfd4f2"},{"url":"https://api.github.com/repos/google/dagger/labels/area:%20examples","name":"area: examples","color":"bfd4f2"},{"url":"https://api.github.com/repos/google/dagger/labels/status:%20accepted","name":"status: accepted","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2015-05-20T04:57:47Z","updated_at":"2015-12-11T19:16:26Z","closed_at":null,"body":"We need a sample from you guys, showing us how to use Dagger 2 in unit tests (Robolectric + Dagger 2 + Mockito). I've seen a lot of workarounds (like making use of the Android variants), but none of them seem clean to me.\r\n\r\nFor example, this is [another sample](https://github.com/chiuki/android-test-demo), and I submitted [an issue](https://github.com/chiuki/android-test-demo/issues/2) to explain why I don't like it.\r\n\r\nI cannot believe Dagger 2 was designed without considering easy & clean testing as one of its main goals.\r\n\r\nThank you in advance. Keep it up!"},"comment":{"url":"https://api.github.com/repos/google/dagger/issues/comments/164023821","html_url":"https://github.com/google/dagger/issues/186#issuecomment-164023821","issue_url":"https://api.github.com/repos/google/dagger/issues/186","id":164023821,"user":{"login":"netdpb","id":4306377,"avatar_url":"https://avatars.githubusercontent.com/u/4306377?v=3","gravatar_id":"","url":"https://api.github.com/users/netdpb","html_url":"https://github.com/netdpb","followers_url":"https://api.github.com/users/netdpb/followers","following_url":"https://api.github.com/users/netdpb/following{/other_user}","gists_url":"https://api.github.com/users/netdpb/gists{/gist_id}","starred_url":"https://api.github.com/users/netdpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netdpb/subscriptions","organizations_url":"https://api.github.com/users/netdpb/orgs","repos_url":"https://api.github.com/users/netdpb/repos","events_url":"https://api.github.com/users/netdpb/events{/privacy}","received_events_url":"https://api.github.com/users/netdpb/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T19:16:26Z","updated_at":"2015-12-11T19:16:26Z","body":"See my suggestion at https://github.com/google/dagger/issues/213#issuecomment-164022841 for a way to implement this outside of Dagger itself."}}