Testing with Android Studio and JUnit
In Chapter: Testing
Author: Ian Darwin ('idarwin')
You want to use JUnit to test your Android Studio-based application.
For simple unit testing, use the "tests" folder; for full Android unit testing, use the "android-tests" folder.
If you found this recipe useful, why not
buy the book
and have the whole collection always at hand?"