We have a very large Android application with no tests. We're suffering the typical quality/too long manual regression testing cycles problem.
As a server side developer, who is new to Android, I want to introduce developer tests.
I can see how to unit test normal Java code with JUnit.
However, the Activities/Fragments/Adapters are proving more difficult.
I watched the Espresso video from GTAC and was impressed and decided to use that.
Where I'm struggling is how to provide my testcase with mocked data to then confirm the display.
Is this even possible? It seems that Espresso is for black box testing, which limits its use for developers considerably (its target audience) since (usually) black box testing is done by QA.