android studio add unit test code example
Example: unit testing in android
Unit tests are the fundamental tests in your app testing strategy. ... A unit test generally exercises the functionality of the smallest possible unit of code (which could be a method, class, or component) in a repeatable way. You should build unit tests when you need to verify the logic of specific code in your app