Google's march on shadows
For some reason, Google does not like Robolectric, they've never acknowledged that it works, or never said that it's a solution to a problem. If they ignore the solution, then that means the problem of slow running tests doesn't exist, right. They seem to feel that Robolectric detracts from Android, and so have kind of publicly given it the cold shoulder. Surreptitiously pushing it away by ignoring its existence, that is up until now.
Google has created exactly what we said before, an android.jar file with default method implementations. This means no more stub! errors when accessing a method. Further, they have removed all of the final modifiers from classes, allowing mocking Frameworks to have a field day. Unfortunately, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access