{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/epoxy/issues/623","repository_url":"https://api.github.com/repos/airbnb/epoxy","labels_url":"https://api.github.com/repos/airbnb/epoxy/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/epoxy/issues/623/comments","events_url":"https://api.github.com/repos/airbnb/epoxy/issues/623/events","html_url":"https://github.com/airbnb/epoxy/issues/623","id":385878567,"node_id":"MDU6SXNzdWUzODU4Nzg1Njc=","number":623,"title":"EpoxyController static initializer requires PowerMockito/Robolectric for testing","user":{"login":"mformetal","id":8823833,"node_id":"MDQ6VXNlcjg4MjM4MzM=","avatar_url":"https://avatars2.githubusercontent.com/u/8823833?v=4","gravatar_id":"","url":"https://api.github.com/users/mformetal","html_url":"https://github.com/mformetal","followers_url":"https://api.github.com/users/mformetal/followers","following_url":"https://api.github.com/users/mformetal/following{/other_user}","gists_url":"https://api.github.com/users/mformetal/gists{/gist_id}","starred_url":"https://api.github.com/users/mformetal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mformetal/subscriptions","organizations_url":"https://api.github.com/users/mformetal/orgs","repos_url":"https://api.github.com/users/mformetal/repos","events_url":"https://api.github.com/users/mformetal/events{/privacy}","received_events_url":"https://api.github.com/users/mformetal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-29T18:56:56Z","updated_at":"2018-12-10T17:45:09Z","closed_at":null,"author_association":"NONE","body":"Line https://github.com/airbnb/epoxy/blob/master/epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyController.java#L54 of EpoxyController contains a static reference to something that eventually uses a `Looper`. Since this is a static call, it's not able to be mocked. This makes testing difficult, as we can't write `mock<EpoxyController>` inside of a pure `Mockito` test now; it requires a framework that does that mocking for us, like `Robolectric`, or something that allows us to mock static things, like `PowerMockito`. This introduces a noticeable slow down in tests. "},"comment":{"url":"https://api.github.com/repos/airbnb/epoxy/issues/comments/445905963","html_url":"https://github.com/airbnb/epoxy/issues/623#issuecomment-445905963","issue_url":"https://api.github.com/repos/airbnb/epoxy/issues/623","id":445905963,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTkwNTk2Mw==","user":{"login":"elihart","id":2739242,"node_id":"MDQ6VXNlcjI3MzkyNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/2739242?v=4","gravatar_id":"","url":"https://api.github.com/users/elihart","html_url":"https://github.com/elihart","followers_url":"https://api.github.com/users/elihart/followers","following_url":"https://api.github.com/users/elihart/following{/other_user}","gists_url":"https://api.github.com/users/elihart/gists{/gist_id}","starred_url":"https://api.github.com/users/elihart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elihart/subscriptions","organizations_url":"https://api.github.com/users/elihart/orgs","repos_url":"https://api.github.com/users/elihart/repos","events_url":"https://api.github.com/users/elihart/events{/privacy}","received_events_url":"https://api.github.com/users/elihart/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T17:45:09Z","updated_at":"2018-12-10T17:45:09Z","author_association":"CONTRIBUTOR","body":"This seems like a valid point - do you have a suggestion on how to change the settings?\r\n\r\nInstead of mocking the field, can you set whatever executor value you want on that static field before your test?"}}
{"actor":{"display_login":"elihart"}}