Uploaded November 2022 | Updated September 2026, 1 week ago
Learn Android Unit Testing - Learn how to unit test repository in Android MVVM Architecture. Learn how to use Mockito to mock different objects and define behavior using Mockito.when. Mocking objects help define canned responses for your functions. You can have pre-defined behavior for your methods that can help to write unit tests that are isolated from its collaborators. Learn how to define unit test cases for repository with different API responses.
Learn how to share code between test and androidtest directory in android using sourcesets in build.gradle file. Defining a common location that is accessible from both test directory can help share the code.
In this tutorial, we have covered Mockito, JUnit testing in Android. Learn unit testing in Android with simple examples in Kotlin Hindi. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Complete MVVM Architecture Example Walkthrough
2. Unit Test Case Setup using Mockito Mocking
3. Android Repository Unit Testing Simple Example
4. Sharing code between unit tests and instrumentation tests on android
5. Android JUnit Test Cases
Kotlin Flows Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIPJ84lXQSHMn8P-0J8jW5YT
Jetpack Paging Tutorial -
youtube.com/playlist?list=PLRKyZvuMYSIPci119n2gt_kq1GU-PAYRk
Complete Dependency Injection Playlist Link -
youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd
Complete Android Architecture Components Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2
Beginner series in Android Playlist (Hindi) -
youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU
Kotlin Beginners Tutorial Series -
youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G
For more info - visit the below link
cheezycode.com
We are social. Follow us at -
Facebook - facebook.com/cheezycode
Twitter - twitter.com/cheezycode
Instagram - instagram.com/cheezycode
Learn Android Unit Testing - Learn how to unit test repository in Android MVVM Architecture. Learn how to use Mockito to mock different objects and define behavior using Mockito.when. Mocking objects help define canned responses for your functions. You can have pre-defined behavior for your methods that can help to write unit tests that are isolated from its collaborators. Learn how to define unit test cases for repository with different API responses.
Learn how to share code between test and androidtest directory in android using sourcesets in build.gradle file. Defining a common location that is accessible from both test directory can help share the code.
In this tutorial, we have covered Mockito, JUnit testing in Android. Learn unit testing in Android with simple examples in Kotlin Hindi. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Complete MVVM Architecture Example Walkthrough
2. Unit Test Case Setup using Mockito Mocking
3. Android Repository Unit Testing Simple Example
4. Sharing code between unit tests and instrumentation tests on android
5. Android JUnit Test Cases
Kotlin Flows Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIPJ84lXQSHMn8P-0J8jW5YT
Jetpack Paging Tutorial -
youtube.com/playlist?list=PLRKyZvuMYSIPci119n2gt_kq1GU-PAYRk
Complete Dependency Injection Playlist Link -
youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd
Complete Android Architecture Components Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2
Beginner series in Android Playlist (Hindi) -
youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU
Kotlin Beginners Tutorial Series -
youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G
For more info - visit the below link
cheezycode.com
We are social. Follow us at -
Facebook - facebook.com/cheezycode
Twitter - twitter.com/cheezycode
Instagram - instagram.com/cheezycode










