I am new to MVP in android.
My question is related to Instrumentation test in android. I am calling second_activity()
in main_activity()
using intent. So how can I test whether second_activity
is called or not in instrumentation test using espresso.
I have successfully tested in unit test using junit and mockito.
I solved it. Let me explain what I did.
First step: Place your intent into a method in main activity
And then place this code in Instrumenation test class file.
hope this will help someone who needs.