mardi 23 avril 2019

How to inject mock dependecies for fragment ui tests?

I have an app built with google's architecture components that follows MVVM pattern.

I want to write espresso UI tests. I do not use dagger or any other DI framework. The ViewModel object is created inside onCreateView.

How do I mock this ViewModel?

Aucun commentaire:

Enregistrer un commentaire