mercredi 11 décembre 2019

How to use robolectric to test activity with extra intent data

I have an activity LoanDemandEntry.class

i am taking index from intent

    selectedMemberIndex = getIntent().getExtras().getInt("selectedMemberIndex");

but when i run robolectric test to see if the views exist it will fail because of this line of code !!

any idea???

Aucun commentaire:

Enregistrer un commentaire