I've seen some videos where they explain how to test the call of an activity for another activity.
I did the following test and, after a reflection, I was not sure if the test I performed was integration, instrumentation or functional testing.
public class OneActivityTest {
private OneActivity mActivity = null;
@Rule
public ActivityTestRule<OneActivity> mActivityTestRule = new ActivityTestRule<>(OneActivity.class);
Instrumentation.ActivityMonitor monitor = getInstrumentation().addMonitor(TwoActivity.class.getName(), null, false);
@Before
public void setUp() {
mActivity = mActivityTestRule.getActivity();
}
@Test
public void checkYes() {
Assert.assertNotNull(mActivity.findViewById(R.id.checkbox_sim));
onView(withId(R.id.checkbox_sim)).perform(click());
Assert.assertNotNull(mActivity.findViewById(R.id.save));
onView(withId(R.id.save)).perform(click());
Activity secondActivity = getInstrumentation().waitForMonitorWithTimeout(monitor, 5000);
Assert.assertNotNull(secondActivity);
secondActivity.finish();
}
}
Can it be considered integration testing simply because it interacts with more than 1 activity?