Android Espresso Tutorial – Testing Fragment in Isolation

Android Espresso Tutorial

Welcome to another tutorial in the Android Testing Series. And this post is called Android Espresso Tutorial that means we are now moving to UI Testing. Espresso is a Testing Framework for writing Automated UI Tests for your Android Application. With espresso, we can simulate the user interaction in our application; its the same as …

Read moreAndroid Espresso Tutorial – Testing Fragment in Isolation

Android ViewModel Unit Test Tutorial

Android Unit Test ViewModel

Hi Guys, welcome to Android ViewModel Unit Test Tutorial. This post is also part of our Android Testing Series. In this post, we will learn how to test our ViewModels. So far, we have learned about writing Unit Tests using JUnit4 and Instrumented Unit Test using AndroidJUnit4. We also learned writing tests for Room Database. Now, …

Read moreAndroid ViewModel Unit Test Tutorial

Android Unit Test Room Database – Testing Room DAOs

Android Unit Test Room Database Thumb

In the last post, we learned about Writing The First Unit Test in our Android Project. Now it’s time to level up the things a little. This post’s title is “Android Unit Test Room Database”; we will focus on testing the room database this time. I guess what you usually do is you write your database …

Read moreAndroid Unit Test Room Database – Testing Room DAOs

Android Unit Test Tutorial – Writing Your First Unit Test

Android Unit Test Tutorial

Hey folks, so you can write or code android apps. But do you test them? Yeah, I know everyone compiles and sees the app, whether it is working or not. But do you write code to test? Do you test every function and every module?. If your answer is NO then, this Android Unit Test …

Read moreAndroid Unit Test Tutorial – Writing Your First Unit Test

Retrofit Authenticator Refresh Token Tutorial

Retrofit Authenticator Refresh Token

Ever heard about Refresh Token? Refresh token can get you a new access token, without prompting the user to login again. In this post we will learn how you can use Retrofit Authenticator to Refresh Token. And refreshing token means getting a new access token with the help of refresh token. Building Backend API Now, …

Read moreRetrofit Authenticator Refresh Token Tutorial

Android AsyncTask is Deprecated: Here’s another way

android asynctask deprecated

If you are into android development then I am pretty sure that you know about Android AsyncTask. The AsyncTask class helped us in executing some code in the background thread. With the help of AsyncTask we can execute something on the background thread and get the result back in the UI thread. If you want …

Read moreAndroid AsyncTask is Deprecated: Here’s another way

Higher Order Functions in Kotlin with Example

Higher Order Functions in Kotlin

This post is about Higher Order Functions in Kotlin. One of the cool thing about Kotlin is; it has support of functional programming as well. That means kotlin functions can be stored in a variable, passed to other function as argument and also can be returned from a function.  What are Higher Order Functions …

Read moreHigher Order Functions in Kotlin with Example