January 2018
Intermediate to advanced
434 pages
14h 1m
English
You’ll need Android Studio, as it provides great support for unit tests, and we will also be learning to write the unit tests for Android code.
You can also find the source code at https://gitlab.com/aanandshekharroy/Anko-examples in the 4-unit-tests branch.
First, you need to add the Mockito dependency to your project. You can do so by adding the following line in your build.gradle file at the app level:
testImplementation 'org.mockito:mockito-core:2.8.47'
Once you have added the dependency, you are good to go ahead.
Read now
Unlock full access